MarshalByValueComponent.ToString 方法

定义

返回包含 Component 的名称的 String(如果有)。 不应重写此方法。

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

返回

String

包含该 String 的名称的 Component(如果有的话)。

如果 Component 未命名,则为 null

注解

A Component 可能或可能没有名称。 Component如果给定名称,则名称在其内IContainer的其他Component对象中是唯一的。

Component存储ISite's name。 Component仅当它已添加到某个值IContainerIContainer向其分配一个时,才能有ISite一个ISite

适用于

另请参阅