GetAttribute Method
Collapse the table of content
Expand the table of content

ConfigurationElement.GetAttribute Method (String)

IIS 7.0
 

Returns a ConfigurationAttribute object that represents the requested attribute.

Namespace:   Microsoft.Web.Administration
Assembly:  Microsoft.Web.Administration (in Microsoft.Web.Administration.dll)

public ConfigurationAttribute GetAttribute(
	string attributeName
)

Parameters

attributeName
Type: System.String

The name of the requested attribute.

Return Value

Type: Microsoft.Web.Administration.ConfigurationAttribute

A ConfigurationAttribute object that represents the requested attribute, if it exists; otherwise, an empty ConfigurationAttribute.

Exception Condition
ArgumentNullException

The attributeName parameter is null or empty.

If the name of the requested attribute is not in the value of the RawAttributes property, this method returns null.

Return to top
Show:
© 2016 Microsoft