SPUserCodePopularityLoadBalancerProvider.GetActivationSite Method
Gets the instance of the user code host service to use for the requested sandboxed solution.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Overrides Function GetActivationSite ( _
assemblyGroupId As SPUserCodeAssemblyGroupId, _
siteCollectionId As Guid, _
availableInstances As ReadOnlyCollection(Of SPUserCodeServiceInstance) _
) As SPUserCodeActivationSiteInfo
'Usage
Dim instance As SPUserCodePopularityLoadBalancerProvider
Dim assemblyGroupId As SPUserCodeAssemblyGroupId
Dim siteCollectionId As Guid
Dim availableInstances As ReadOnlyCollection(Of SPUserCodeServiceInstance)
Dim returnValue As SPUserCodeActivationSiteInfo
returnValue = instance.GetActivationSite(assemblyGroupId, _
siteCollectionId, availableInstances)
public override SPUserCodeActivationSiteInfo GetActivationSite(
SPUserCodeAssemblyGroupId assemblyGroupId,
Guid siteCollectionId,
ReadOnlyCollection<SPUserCodeServiceInstance> availableInstances
)
Parameters
assemblyGroupId
Type: Microsoft.SharePoint.Administration.SPUserCodeAssemblyGroupIdThe assembly group of the sandboxed solution.
siteCollectionId
Type: System.GuidThe ID of the site collection where the sandboxed solution has been requested.
availableInstances
Type: System.Collections.ObjectModel.ReadOnlyCollection<SPUserCodeServiceInstance>List of available instances of the user code host service in the current farm.
Return Value
Type: Microsoft.SharePoint.Administration.SPUserCodeActivationSiteInfo
The user code execution host service is used.
See Also
Reference
SPUserCodePopularityLoadBalancerProvider Class