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.All

Gets an array of descriptions of properties.

[Visual Basic]
Overridable Public Property All As PropertyDescriptor ()
[C#]
public PropertyDescriptor[] All {virtual get; virtual set;}
[C++]
public: __property virtual PropertyDescriptor* get_All();
public: __property virtual void set_All(PropertyDescriptor*[]);
[JScript]
public function get All() : PropertyDescriptor[];
public function set All(PropertyDescriptor[]);

Property Value

An array of type PropertyDescriptor with descriptions of the properties.

Exceptions

Exception Type Condition
NotSupportedException Setting the property.

Example [Visual Basic]

The following example shows how to get an array of type PropertyDescriptor using the All property. It assumes that Button1 has been instantiated on a form.

[Visual Basic]

Private Sub GetAllProperties()
   ' Create a new collection and assign it the properties for Button1.
   Dim properties As PropertyDescriptorCollection
   properties = TypeDescriptor.GetProperties(Button1)

   ' Get all the PropertyDescriptors.
   Dim pArray() As PropertyDescriptor
   pArray = properties.All

   ' Print all the property names in a text box.
   Dim i As Integer
   For i = 0 To pArray.Length - 1
      TextBox1.Text &= " " & pArray(i).Name
   Next
End Sub

See Also

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