DesignerRegion.UserData Property

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

Gets or sets optional user data to associate with the designer region.

Namespace: System.Web.UI.Design
Assembly: System.Design (in system.design.dll)

public:
property Object^ UserData {
	Object^ get ();
	void set (Object^ value);
}
/** @property */
public Object get_UserData ()

/** @property */
public void set_UserData (Object value)

public function get UserData () : Object

public function set UserData (value : Object)

Property Value

An object that contains user data stored for the designer region. The default is a null reference (Nothing in Visual Basic).

Within a control designer implementation, use the UserData property to store or retrieve additional information for the designer region.

For example, if the control designer implementation supports selecting from multiple designer regions, you can use the UserData property in a control designer to store a unique index for each region. You can then use the UserData property for the region that is passed into the OnClick method to store the index for the currently selected region.

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

Windows 98, Windows 2000 SP4, 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
Show: