XElementHelper.TryGetAttributeValue Method
- Namespace
- Kampute.DocToolkit.Support
- Assembly
- Kampute.DocToolkit.dll
Definition
Attempts to get the value of the attribute with the specified name.
public static bool TryGetAttributeValue(this XElement element, string attributeName, [NotNullWhen(true)] out string value)Parameters
elementXElement- The XElement instance.
attributeNamestring- The name of the attribute.
valuestring- When this method returns, contains the value of the attribute, if the attribute is found; otherwise,
null.
