NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TypeDescriptor.GetProperties (Object, MemberAttribute[])

Gets a collection of properties for a specified component using a specified array of attributes

as a filter.

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

Parameters

component
A component to get the properties for.
attributes
An array of type MemberAttribute to use as a filter.

Return Value

A PropertyDescriptorCollection with the properties that match the specified attributes for the specified component.

Remarks

The properties for a component can differ from the properties of a class, because if the component is sited, the site can add or remove properties.

The attributes array can have a mix of Type and MemberAttribute objects. Filtering is defined by the following rules:

See Also

TypeDescriptor Class | TypeDescriptor Members | System.ComponentModel Namespace | TypeDescriptor.GetProperties Overload List | TypeDescriptor | EventDescriptor | PropertyDescriptor | PropertyDescriptorCollection | MemberAttribute