MarshalByValueComponent.ToString MarshalByValueComponent.ToString MarshalByValueComponent.ToString MarshalByValueComponent.ToString Method

定義

傳回任何包含 Component 名稱的 StringReturns a String containing the name of the Component, if any. 不應覆寫此方法。This method should not be overridden.

public:
 override System::String ^ ToString();
public override string ToString ();
override this.ToString : unit -> string
Public Overrides Function ToString () As String

傳回

String,其中可能含有 Component 的名稱。A String containing the name of the Component, if any.

如果 Component 尚未命名,則為 nullnull if the Component is unnamed.

備註

AComponent可能會或可能不會有名稱。A Component may or may not have a name. 如果Component是指定名稱,名稱是唯一的其他Component內的物件及其IContainerIf a Component is given a name, the name is unique among other Component objects within its IContainer.

ISite儲存Component的名稱。The ISite stores the Component's name. AComponent只能有ISite如果加入至IContainerIContainer指派ISite給它。A Component can only have a ISite if it has been added to an IContainer and the IContainer assigns an ISite to it.

適用於

另請參閱