CustomTypeDescriptor.GetComponentName 方法

定義

回傳由此類型描述符所代表的類別名稱。

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

傳回

包含此類型描述符所描述的元件實例名稱的 A String 。 預設值為 null

實作

備註

如果一個父自訂型別描述符傳給 CustomTypeDescriptor 建構子, GetComponentName 該方法會呼叫父程式對應的方法。

適用於

另請參閱