SPSite.ToString method

Returns the name of the site collection.

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

public override string ToString()

Return value

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