HtmlAttributeCollectionTryGetValue(String, HtmlAttribute) Method

Get an attribute from the collection if it exists.

Definition

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

Parameters

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

Return Value

Boolean
if the desired attribute is found; otherwise, .

Remarks

Gets an attribute from the collection if it exists.

Exceptions

See Also