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