CustomTypeDescriptor.GetClassName 方法

定義

傳回此類型描述元所代表之類別的完整格式名稱。Returns the fully qualified name of the class represented by this type descriptor.

public:
 virtual System::String ^ GetClassName();
public virtual string GetClassName ();
abstract member GetClassName : unit -> string
override this.GetClassName : unit -> string
Public Overridable Function GetClassName () As String

傳回

String

String,包含此類型描述元所描述之類型的完整類別名稱。A String containing the fully qualified class name of the type this type descriptor is describing. 預設值為 nullThe default is null.

實作

備註

注意

GetClassName 不是靜態方法,因此不保證是安全線程。GetClassName is not a static method and thus, is not guaranteed to be thread-safe.

如果將父系自訂類型描述元傳遞給函式 CustomTypeDescriptor ,則此 GetClassName 方法會呼叫父系的對應方法。If a parent custom type descriptor was passed to the CustomTypeDescriptor constructor, the GetClassName method will call the parent's corresponding method.

適用於

另請參閱