DynamicControl.GetAttribute Method (String)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Retrieves the attribute value by using the specified key.

Namespace:   System.Web.DynamicData
Assembly:  System.Web.DynamicData (in System.Web.DynamicData.dll)

abstract GetAttribute : 
        key:string -> string
override GetAttribute : 
        key:string -> string


Type: System.String

The name of the attribute.

Return Value

Type: System.String

The value of the attribute.

If the attributes collection is null, this method returns an empty string.

.NET Framework
Available since 3.5
Return to top