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

  • siteCollectionId
    Type: System.Guid

    The ID of the site collection where the sandboxed solution has been requested.

Return value

Type: Microsoft.SharePoint.Administration.SPUserCodeActivationSiteInfo
The user code execution host service is used.

See also

Reference

SPUserCodePopularityLoadBalancerProvider class

SPUserCodePopularityLoadBalancerProvider members

Microsoft.SharePoint.Administration namespace