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
location
Type: Microsoft.PerformancePoint.Scorecards.RepositoryLocationThe specified location. Only the ItemUrl property must be defined, and it can point to an existing object or to a list or a site.
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.