Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

SPWeb.Name property

Gets or sets the name of the website.

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:
© 2015 Microsoft