This documentation is archived and is not being maintained.

SPWeb.Name Property

Windows SharePoint Services 3

Gets or sets the name of the Web site.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public string Name { get; set; }

Property Value

Type: System.String
A string that contains the name.

The Name property returns an empty string if the site is a top-level site.

Show: