ConfigurationElement.GetAttribute(String) Method

Definition

Returns a ConfigurationAttribute object that represents the requested attribute.

public:
 Microsoft::Web::Administration::ConfigurationAttribute ^ GetAttribute(System::String ^ attributeName);
public Microsoft.Web.Administration.ConfigurationAttribute GetAttribute (string attributeName);
member this.GetAttribute : string -> Microsoft.Web.Administration.ConfigurationAttribute
Public Function GetAttribute (attributeName As String) As ConfigurationAttribute

Parameters

attributeName
String

The name of the requested attribute.

Returns

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

Exceptions

The attributeName parameter is null or empty.

Remarks

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

Applies to