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.GetDefaultProperty (Type)

Gets the default property for the specified type of component.

[Visual Basic]
Overloads Public Shared Function GetDefaultProperty( _
   ByVal componentType As Type _
) As PropertyDescriptor
[C#]
public static PropertyDescriptor GetDefaultProperty(
   Type componentType
);
[C++]
public: static PropertyDescriptor* GetDefaultProperty(
   Type* componentType
);
[JScript]
public static function GetDefaultProperty(
   componentType : Type
) : PropertyDescriptor;

Parameters

componentType
A Type that represents the class to get the property for.

Return Value

A PropertyDescriptor with the default property, or a null reference (in Visual Basic Nothing) if there are no properties.

Remarks

Call this version of this method only when you do not have an instance of the object.

See Also

TypeDescriptor Class | TypeDescriptor Members | System.ComponentModel Namespace | TypeDescriptor.GetDefaultProperty Overload List | TypeDescriptor | EventDescriptor | PropertyDescriptor