Html Attribute CollectionTry Get Value(String, Html Attribute) 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
if the desired attribute is found; otherwise, .
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
Booleanif the desired attribute is found; otherwise, .
Remarks
Gets an attribute from the collection if it exists.
Exceptions
| ArgumentNullException | name is . |