Share via


SPUserCodeRandomLoadBalancerProvider.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 SPUserCodeRandomLoadBalancerProvider
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 was called.

Return value

Type: Microsoft.SharePoint.Administration.SPUserCodeActivationSiteInfo
The instance of the user code execution host service that is used to process the sandboxed solution.

See also

Reference

SPUserCodeRandomLoadBalancerProvider class

SPUserCodeRandomLoadBalancerProvider members

Microsoft.SharePoint.Administration namespace