This documentation is archived and is not being maintained.

SPSite.ToString Method

Windows SharePoint Services 3

Returns the name of the site collection.

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

[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public override string ToString()

Return Value

Type: System.String
A string that contains the name of the site collection.
Show: