ISite.Name 属性

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

**命名空间:**System.ComponentModel
**程序集:**System(在 system.dll 中)

语法

声明
Property Name As String
用法
Dim instance As ISite
Dim value As String

value = instance.Name

instance.Name = value
string Name { get; set; }
property String^ Name {
    String^ get ();
    void set (String^ value);
}
/** @property */
String get_Name ()

/** @property */
void set_Name (String value)
function get Name () : String

function set Name (value : String)

属性值

ISite 关联的组件的名称,或者在未给该组件分配名称的情况下为 空引用(在 Visual Basic 中为 Nothing)。

备注

容器中的组件可能具有或没有名称。如果给组件提供名称,该名称必须对于容器中的其他组件是唯一的。

平台

Windows 98、Windows 2000 SP4、Windows CE、Windows Millennium Edition、Windows Mobile for Pocket PC、Windows Mobile for Smartphone、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

.NET Compact Framework

受以下版本支持:2.0、1.0

请参见

参考

ISite 接口
ISite 成员
System.ComponentModel 命名空间