Export (0) Print
Expand All

MobileControl.GetAttribute Method

Retrieves the specified attribute property from the control.

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

protected string GetAttribute (
	string name
protected String GetAttribute (
	String name
protected function GetAttribute (
	name : String
) : String
Not applicable.



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 Server 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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

© 2014 Microsoft