Tries to get attribute value.
Namespace: CudafyAssembly: Cudafy (in Cudafy.dll) Version: 1.0.4106.20170
Syntax
C# |
---|
public static string TryGetAttributeValue( this XElement element, string attributeName ) |
Visual Basic |
---|
<ExtensionAttribute> _ Public Shared Function TryGetAttributeValue ( _ element As XElement, _ attributeName As String _ ) As String |
Visual C++ |
---|
[ExtensionAttribute] public: static String^ TryGetAttributeValue( XElement^ element, String^ attributeName ) |
Parameters
- element
- Type: System.Xml.Linq..::..XElement
The element.
- attributeName
- Type: System..::..String
Name of the attribute.