다음을 통해 공유


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

  • 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