GetAttribute Method
IIS 7.0
Returns a ConfigurationAttribute object that represents the requested attribute.
Assembly: Microsoft.Web.Administration (in Microsoft.Web.Administration.dll)
Parameters
- attributeName
- Type: System..::..String
The name of the requested attribute.
Return Value
Type: Microsoft.Web.Administration..::..ConfigurationAttributeA ConfigurationAttribute object that represents the requested attribute, if it exists; otherwise, an empty ConfigurationAttribute.
| Exception | Condition |
|---|---|
| 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).