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)
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