MarshalByValueComponent.ToString 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
public:
override System::String ^ ToString();
public override string ToString ();
public override string? ToString ();
override this.ToString : unit -> string
Public Overrides Function ToString () As String
傳回
如果 Component 尚未命名,則為 null
。
備註
Component可能或可能沒有名稱。 Component如果指定了 名稱,則名稱在其 內的其他 Component 物件之間是唯一的 IContainer 。
會 ISite 儲存 Component 的名稱。 Component只有在已加入 至 IContainer ,並將 IContainer 指派 ISite 給它時,才能有 ISite 。