MobileControl.GetAttribute Method

Note: This method is new in the .NET Framework version 2.0.

Retrieves the specified attribute property from the control.

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

protected string GetAttribute (
	string name
protected String GetAttribute (
	String name
protected function GetAttribute (
	name : String
) : String



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

Return Value

A String representing the value of the specified attribute; if no attribute with the specified name exists, then a null reference (Nothing in Visual Basic).

The GetAttribute method returns attributes stored in the CustomAttributes property. If CustomAttributes is a null reference (Nothing in Visual Basic), then GetAttribute will also return a null reference (Nothing in Visual Basic).

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions