PersonalizableAttribute.GetPersonalizableProperties Method (Type)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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


Type: System.Type

The type on which to look for Personalizable properties.

Return Value

Type: System.Collections.ICollection

An ICollection of personalizable properties.

Exception Condition

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
Available since 2.0
Return to top