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

Gets the name of the class for the specified component.

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

Parameters

component
The Object whose class name you want.
fNoCustomTypeDesc
true if TypeDescriptor has been called by an instance of ICustomTypeDescriptor; otherwise, false.

Return Value

The name of the class for the specified component.

Remarks

Typically, this returns the name for the site of the component, if one exists. If the component

implements ICustomTypeDescriptor, it can return an alternate name.

See Also

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