Site.Name 属性

定义

获取或设置网站的名称。

public:
 property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
public string Name { get; set; }
member this.Name : string with get, set
Public Property Name As String

属性值

站点的名称。

注解

随 IIS 7 一起安装的默认网站具有关联的名称“默认网站”。 创建新网站时,将验证名称,以确保它不包含从 Microsoft.Web.Administration.SiteCollection.InvalidSiteNameCharacters 方法返回的字符。

适用于