Export (0) Print
Expand All

GetAttribute Method

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.

ExceptionCondition
ArgumentNullException

The attributeName parameter is nullNothingnullptrunita null reference (Nothing in Visual Basic) or empty.

If the name of the requested attribute is not in the value of the RawAttributes property, this method returns nullNothingnullptrunita null reference (Nothing in Visual Basic).

Community Additions

ADD
Show:
© 2015 Microsoft