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