Component.ToString 方法

定义

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

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

返回

一个 String 包含名称( Component如果有)或 null 未命名的名称 Component

注解

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

存储 ISite . 的名称 ComponentComponent一个只能有一个ISite,如果它已添加到其中IContainer,并且IContainer向其分配了一个ISite

适用于

另请参阅