TypeDescriptor.GetFullComponentName(Object) 方法

定義

傳回元件的完整名稱。

public:
 static System::String ^ GetFullComponentName(System::Object ^ component);
public static string GetFullComponentName (object component);
public static string? GetFullComponentName (object component);
static member GetFullComponentName : obj -> string
Public Shared Function GetFullComponentName (component As Object) As String

參數

component
Object

要尋找其名稱的 Component

傳回

指定元件的完整名稱;如果元件有沒有名稱,則為 null

例外狀況

componentnull

備註

在許多情況下, GetFullComponentName 方法會傳回與方法相同的值 GetComponentName 。 不過,如果元件位於巢狀容器或具有其他巢狀語意中,它可能會傳回不同的完整名稱。

適用於

另請參閱