This topic has not yet been rated - Rate this topic

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).

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.