DataDrivenAdapterBase.GetAttributeValue Method (XmlNode, String, String)
Retrieves a string 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 String
Dim returnValue As String
returnValue = DataDrivenAdapterBase.GetAttributeValue(node, attributeName, defaultValue)
Syntax
'Declaration
Protected Shared Function GetAttributeValue ( _
node As XmlNode, _
attributeName As String, _
defaultValue As String _
) As String
protected static string GetAttributeValue (
XmlNode node,
string attributeName,
string defaultValue
)
protected:
static String^ GetAttributeValue (
XmlNode^ node,
String^ attributeName,
String^ defaultValue
)
protected static String GetAttributeValue (
XmlNode node,
String attributeName,
String defaultValue
)
protected static function GetAttributeValue (
node : XmlNode,
attributeName : String,
defaultValue : String
) : String
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: String
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.