Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TypeDescriptor.GetProperties Method

Gets the collection of properties.

Overload List

Gets the collection of properties for a specified component.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Shared Function GetProperties(Object) As PropertyDescriptorCollection
[C#] public static PropertyDescriptorCollection GetProperties(object);
[C++] public: static PropertyDescriptorCollection* GetProperties(Object*);
[JScript] public static function GetProperties(Object) : PropertyDescriptorCollection;

Gets the collection of properties for a specified type of component.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Shared Function GetProperties(Type) As PropertyDescriptorCollection
[C#] public static PropertyDescriptorCollection GetProperties(Type);
[C++] public: static PropertyDescriptorCollection* GetProperties(Type*);
[JScript] public static function GetProperties(Type) : PropertyDescriptorCollection;

Gets the collection of properties for a specified component using a specified array of attributes as a filter.

[Visual Basic] Overloads Public Shared Function GetProperties(Object, Attribute()) As PropertyDescriptorCollection
[C#] public static PropertyDescriptorCollection GetProperties(object, Attribute[]);
[C++] public: static PropertyDescriptorCollection* GetProperties(Object*, Attribute[]);
[JScript] public static function GetProperties(Object, Attribute[]) : PropertyDescriptorCollection;

Gets the collection of properties for a specified component using the default type descriptor.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Shared Function GetProperties(Object, Boolean) As PropertyDescriptorCollection
[C#] public static PropertyDescriptorCollection GetProperties(object, bool);
[C++] public: static PropertyDescriptorCollection* GetProperties(Object*, bool);
[JScript] public static function GetProperties(Object, Boolean) : PropertyDescriptorCollection;

Gets the collection of properties for a specified type of component using a specified array of attributes as a filter.

[Visual Basic] Overloads Public Shared Function GetProperties(Type, Attribute()) As PropertyDescriptorCollection
[C#] public static PropertyDescriptorCollection GetProperties(Type, Attribute[]);
[C++] public: static PropertyDescriptorCollection* GetProperties(Type*, Attribute[]);
[JScript] public static function GetProperties(Type, Attribute[]) : PropertyDescriptorCollection;

Gets the collection of properties for a specified component using a specified array of attributes as a filter and using a custom type descriptor.

[Visual Basic] Overloads Public Shared Function GetProperties(Object, Attribute(), Boolean) As PropertyDescriptorCollection
[C#] public static PropertyDescriptorCollection GetProperties(object, Attribute[], bool);
[C++] public: static PropertyDescriptorCollection* GetProperties(Object*, Attribute[], bool);
[JScript] public static function GetProperties(Object, Attribute[], Boolean) : PropertyDescriptorCollection;

Example

For an example on this method, see the sample in Contains

See Also

TypeDescriptor Class | TypeDescriptor Members | System.ComponentModel Namespace

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft