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!

PropertyDescriptorCollection Constructor

Initializes a new instance of the PropertyDescriptorCollection class.

[Visual Basic]
Public Sub New( _
   ByVal properties() As PropertyDescriptor _
)
[C#]
public PropertyDescriptorCollection(
   PropertyDescriptor[] properties
);
[C++]
public: PropertyDescriptorCollection(
   PropertyDescriptor* properties[]
);
[JScript]
public function PropertyDescriptorCollection(
   properties : PropertyDescriptor[]
);

Parameters

properties
An array of type PropertyDescriptor that provides the properties for this collection.

Example [Visual Basic]

The following example creates a new PropertyDescriptorCollection using the events on Button1. It assumes that Button1 has been instantiated on a form.

[Visual Basic]

Dim properties As PropertyDescriptorCollection
properties = TypeDescriptor.GetProperties(Button1)

See Also

PropertyDescriptorCollection Class | PropertyDescriptorCollection Members | System.ComponentModel Namespace | PropertyDescriptor | TypeDescriptor