共用方式為


SPUserCodeLoadBalancerProvider.GetActivationSite Method

Gets the server to use for given specified assembly group and site collection combination.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Overridable Function GetActivationSite ( _
    assemblyGroupId As SPUserCodeAssemblyGroupId, _
    siteCollectionId As Guid, _
    availableInstances As ReadOnlyCollection(Of SPUserCodeServiceInstance) _
) As SPUserCodeActivationSiteInfo
'Usage
Dim instance As SPUserCodeLoadBalancerProvider
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 virtual SPUserCodeActivationSiteInfo GetActivationSite(
    SPUserCodeAssemblyGroupId assemblyGroupId,
    Guid siteCollectionId,
    ReadOnlyCollection<SPUserCodeServiceInstance> availableInstances
)

Parameters

  • siteCollectionId
    Type: System.Guid

    The site collection identifier of the site which the wrapper object will be working within.

Return Value

Type: Microsoft.SharePoint.Administration.SPUserCodeActivationSiteInfo
Returns a SPUserCodeActivationSiteInfo list of available service instances in the current farm.

See Also

Reference

SPUserCodeLoadBalancerProvider Class

SPUserCodeLoadBalancerProvider Members

Microsoft.SharePoint.Administration Namespace