GetAttribute Method
Collapse the table of content
Expand the table of content

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 string GetAttribute(
	string key
)

Parameters

key
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
Show:
© 2016 Microsoft