Title property
Collapse the table of content
Expand the table of content

SPWeb.Title property

Gets or sets the title for the website.

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

Public Property Title As String
Dim instance As SPWeb
Dim value As String

value = instance.Title

instance.Title = value

Property value

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

The value that is returned can vary depending on the current thread's Thread.CurrentUICulture property. For more information, see the TitleResource property.

The following code example uses the Title property to change the title of a specified website in the current site collection.

Using webSite As SPWeb = SPContext.Current.Site.OpenWeb("Website_URL")
    webSite.Title = "New_Site_Name"

End Using
© 2015 Microsoft