DynamicControl.GetAttribute Method (String)


Retrieves the attribute value by using the specified key.

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

Public Function GetAttribute (
	key As String
) As 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