ISite.Name 属性

定义

获取或设置与类实现时关联的 ISite 组件的名称。

public:
 property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
public string? Name { get; [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The Type of components in the container cannot be statically discovered to validate the name.")] set; }
public string? Name { get; set; }
public string Name { get; set; }
[<set: System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The Type of components in the container cannot be statically discovered to validate the name.")>]
member this.Name : string with get, set
member this.Name : string with get, set
Public Property Name As String

属性值

ISite 关联的组件的名称;如果未 null向组件分配任何名称,则为该组件指定名称。

属性

注解

容器中的组件可能或未命名。 如果为组件指定了名称,则名称在容器中的所有组件中必须是唯一的。

适用于