Visual Signal ExternalBase Class Library Documentation
GetXmlAttribute<(Of <(T>)>) Method (elm, fieldName, isRequired)
VisualSignalVSignal.ExternalBaseTExternalBaseGetXmlAttribute<(Of <(T>)>)(XmlElement, String, Boolean)
API version 1.2.2.0

[This is preliminary documentation and is subject to change.]

Static utility function "GetXmlAttribute", provided for general use to obtain an attribute value from an XML element.
Declaration Syntax
C#Visual BasicVisual C++
public static Object GetXmlAttribute<T>(
	XmlElement elm,
	string fieldName,
	bool isRequired
)
Public Shared Function GetXmlAttribute(Of T) ( _
	elm As XmlElement, _
	fieldName As String, _
	isRequired As Boolean _
) As Object
public:
generic<typename T>
static Object^ GetXmlAttribute(
	XmlElement^ elm, 
	String^ fieldName, 
	bool isRequired
)
Generic Template Parameters
T
Specifies the System.Type of the field value.
Parameters
elm (XmlElement)
Specifies the XML element.
fieldName (String)
Specifies the name of the field attribute to be updated.
isRequired (Boolean)
Specifies True if the field is required. An exception will be thrown if a required field is missing in the XML document.
Return Value
Returns the field value of type T.

Assembly: vsmExternalBase (Module: vsmExternalBase) Version: 1.2.2.0 (1.3.0.0)