SPDataStore.GetSiteCollectionGuid Method

Gets the identifier of a site collection for the specified location.

Namespace:  Microsoft.PerformancePoint.Scorecards.Store
Assembly:  Microsoft.PerformancePoint.Scorecards.Store (in Microsoft.PerformancePoint.Scorecards.Store.dll)

Syntax

'Declaration
Public Shared Function GetSiteCollectionGuid ( _
    location As RepositoryLocation _
) As Guid
'Usage
Dim location As RepositoryLocation
Dim returnValue As Guid

returnValue = SPDataStore.GetSiteCollectionGuid(location)
public static Guid GetSiteCollectionGuid(
    RepositoryLocation location
)

Parameters

Return Value

Type: System.Guid
The GUID of the SharePoint site collection (an SPSite object) that is referenced by the specified location. Returns an empty GUID if the site collection cannot be found.

See Also

Reference

SPDataStore Class

SPDataStore Members

Microsoft.PerformancePoint.Scorecards.Store Namespace