Share via


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)

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