PersonalizableAttribute.GetPersonalizableProperties(Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.