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
返回
包含该 String 的名称的 Component(如果有的话)。
如果 Component 未命名,则为 null。
注解
可能 Component 具有名称,也可能没有名称。 Component如果为 指定了一个名称,则名称在其 中的其他Component对象中是唯一的IContainer。
存储 ISiteComponent的名称。 Component仅当已将其添加到 并且 IContainer 为它分配了 ISite 时, IContainer 才能有 ISite 。