Rediger

Del via


PersonalizableAttribute.GetPersonalizableProperties(Type) Method

Definition

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

public:
 static System::Collections::ICollection ^ GetPersonalizableProperties(Type ^ type);
public static System.Collections.ICollection GetPersonalizableProperties (Type type);
static member GetPersonalizableProperties : Type -> System.Collections.ICollection
Public Shared Function GetPersonalizableProperties (type As Type) As ICollection

Parameters

type
Type

The type on which to look for Personalizable properties.

Returns

An ICollection of personalizable properties.

Exceptions

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

Remarks

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.

Applies to