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 (Object, Boolean)

Gets the default property for the specified component.

[Visual Basic]
Overloads Public Shared Function GetDefaultProperty( _
   ByVal component As Object, _
   ByVal fNoCustomTypeDesc As Boolean _
) As PropertyDescriptor
[C#]
public static PropertyDescriptor GetDefaultProperty(
   object component,
   bool fNoCustomTypeDesc
);
[C++]
public: static PropertyDescriptor* GetDefaultProperty(
   Object* component,
   bool fNoCustomTypeDesc
);
[JScript]
public static function GetDefaultProperty(
   component : Object,
   fNoCustomTypeDesc : Boolean
) : PropertyDescriptor;

Parameters

component
The component to get the default property for.
fNoCustomTypeDesc
[To be supplied.]

Return Value

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

See Also

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