ConfigurationElement.GetAttribute(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.