Click or drag to resize
MimeKit

HtmlAttributeCollectionTryGetValue(String, HtmlAttribute) Method

Get an attribute from the collection if it exists.

Namespace: MimeKit.Text
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public bool TryGetValue(
	string name,
	out HtmlAttribute attribute
)

Parameters

name  String
The name of the attribute.
attribute  HtmlAttribute
The attribute if found; otherwise, null.

Return Value

Boolean
true if the desired attribute is found; otherwise, false.
Exceptions
ExceptionCondition
ArgumentNullExceptionname is null.
Remarks
Gets an attribute from the collection if it exists.
See Also