Share via


DataDrivenAdapterBase.GetAttributeValue Method

Definition

Overloads

GetAttributeValue(XmlNode, String, Int32)

Retrieves an integer valued attribute from an XML node.

GetAttributeValue(XmlNode, String, String)

Retrieves a string valued attribute from an XML node.

GetAttributeValue(XmlNode, String, Int32)

Retrieves an integer valued attribute from an XML node.

protected:
 static int GetAttributeValue(System::Xml::XmlNode ^ node, System::String ^ attributeName, int defaultValue);
protected static int GetAttributeValue (System.Xml.XmlNode node, string attributeName, int defaultValue);
static member GetAttributeValue : System.Xml.XmlNode * string * int -> int
Protected Shared Function GetAttributeValue (node As XmlNode, attributeName As String, defaultValue As Integer) As Integer

Parameters

node
XmlNode

Specifies the XML node to retrieve the attribute value from.

attributeName
String

Specifies the name of the attribute to be retrieved.

defaultValue
Int32

Specifies the value to return if the named attribute doesn’t exist.

Returns

The attribute from an XML node.

Applies to

GetAttributeValue(XmlNode, String, String)

Retrieves a string valued attribute from an XML node.

protected:
 static System::String ^ GetAttributeValue(System::Xml::XmlNode ^ node, System::String ^ attributeName, System::String ^ defaultValue);
protected static string GetAttributeValue (System.Xml.XmlNode node, string attributeName, string defaultValue);
static member GetAttributeValue : System.Xml.XmlNode * string * string -> string
Protected Shared Function GetAttributeValue (node As XmlNode, attributeName As String, defaultValue As String) As String

Parameters

node
XmlNode

Specifies the XML node to retrieve the attribute value from.

attributeName
String

Specifies the name of the attribute to be retrieved.

defaultValue
String

Specifies the value to return if the named attribute doesn’t exist.

Returns

The attribute from an XML node.

Applies to