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[], Boolean)

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, _
   ByVal fNoCustomTypeDesc As Boolean _
) As PropertyDescriptorCollection
[C#]
public static PropertyDescriptorCollection GetProperties(
   object component,
   MemberAttribute[] attributes,
   bool fNoCustomTypeDesc
);
[C++]
public: static PropertyDescriptorCollection* GetProperties(
   Object* component,
   MemberAttribute* attributes[],
   bool fNoCustomTypeDesc
);
[JScript]
public static function GetProperties(
   component : Object,
   attributes : MemberAttribute[],
   fNoCustomTypeDesc : Boolean
) : PropertyDescriptorCollection;

Parameters

component
A component to get the properties for.
attributes
An array of type MemberAttribute to use as a filter.
fNoCustomTypeDesc
true if TypeDescriptor has been called by an instance of ICustomTypeDescriptor; otherwise, false.

Return Value

A PropertyDescriptorCollection with the events 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 may 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 | ICustomTypeDescriptor