Compartilhar via


DataDrivenAdapterBase.GetAttributeValue Method (XmlNode, String, Int32)

Retrieves an integer valued attribute from an XML node.

Namespace: Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter
Assembly: Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter (in Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.dll)

Usage

'Usage
Dim node As XmlNode
Dim attributeName As String
Dim defaultValue As Integer
Dim returnValue As Integer

returnValue = DataDrivenAdapterBase.GetAttributeValue(node, attributeName, defaultValue)

Syntax

'Declaration
Protected Shared Function GetAttributeValue ( _
    node As XmlNode, _
    attributeName As String, _
    defaultValue As Integer _
) As Integer
protected static int GetAttributeValue (
    XmlNode node,
    string attributeName,
    int defaultValue
)
protected:
static int GetAttributeValue (
    XmlNode^ node, 
    String^ attributeName, 
    int defaultValue
)
protected static int GetAttributeValue (
    XmlNode node, 
    String attributeName, 
    int defaultValue
)
protected static function GetAttributeValue (
    node : XmlNode, 
    attributeName : String, 
    defaultValue : int
) : int

Parameters

  • node
    Specifies the XML node to retrieve the attribute value from.
  • attributeName
    Specifies the name of the attribute to be retrieved.
  • defaultValue
    Specifies the value to return if the named attribute doesn’t exist.

Return Value

Type: Int32
The attribute from an XML node.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

See Also

Reference

DataDrivenAdapterBase Class
DataDrivenAdapterBase Members
Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter Namespace

Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.