XmlElementConverter.GetAttribute Method

Definition

Namespace: ASNA.DataGate.Common
Assembly: ASNA.QSys.DataGate.Client.dll

Gets the value of the attribute with the specified name from the current XmlElement.

Overloads

Signature Description
GetAttribute(string GetAttribute(string name)) Gets the value of the attribute with the specified name from the current XmlElement.
GetAttribute(string GetAttribute(string name, object defaultValue)) Gets the value of the attribute with the specified name from the current XmlElement.

string GetAttribute(string name)

Gets the value of the attribute with the specified name from the current XmlElement.

string GetAttribute(string name)

Parameters

Type Parameter name Description
String name The name of the attribute.

Returns

Type Description
String The value of the attribute.

string GetAttribute(string name, object defaultValue)

Gets the value of the attribute with the specified name from the current XmlElement. If the attribute does not exist, returns the specified default value.

string GetAttribute(string name, object defaultValue)

Parameters

Type Parameter name Description
String name The name of the attribute.
Object defaultValue The value to return if the attribute does not exist.

Returns

Type Description
String The value of the attribute, or the default value if the attribute does not exist.

See Also