MobileControl.GetAttribute Method (String)

 
System_CAPS_noteNote

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 specified attribute property from the control. This API is obsolete. For information about how to develop ASP.NET mobile applications, see the www.asp.net/mobile Web site.

Namespace:   System.Web.UI.MobileControls
Assembly:  System.Web.Mobile (in System.Web.Mobile.dll)

member GetAttribute : 
        name:string -> string

Parameters

name
Type: System.String

A String that specifies the name of the server control attribute.

Return Value

Type: System.String

A String representing the value of the specified attribute; if no attribute with the specified name exists, then null.

The GetAttribute method returns attributes stored in the CustomAttributes property. If CustomAttributes is null, then GetAttribute will also return null.

.NET Framework
Available since 2.0

MobileControl Class
System.Web.UI.MobileControls Namespace
Creating Custom Mobile Controls
Inside the ASP.NET Mobile Controls

Return to top
Show: