This documentation is archived and is not being maintained.

PersonalizableAttribute.GetPersonalizableProperties Method

Returns a collection of PropertyInfo objects for the properties that match the parameter type and are marked as personalizable.

Namespace:  System.Web.UI.WebControls.WebParts
Assembly:  System.Web (in System.Web.dll)

public static ICollection GetPersonalizableProperties(
	Type type
)

Parameters

type
Type: System.Type
The type on which to look for Personalizable properties.

Return Value

Type: System.Collections.ICollection
An ICollection of personalizable properties.

ExceptionCondition
HttpException

A public property on the type is marked as personalizable but is read-only.

This method returns a collection containing zero or more PropertyInfo objects, with one object in the collection for each property of the type specified that is marked as being personalizable, where IsPersonalizable equals true.

The type parameter is the type on which to look for Personalizable properties. For example, you would pass in "typeof(MyWebPart)" to get the Personalizable properties on the MyWebPart class.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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