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
assemblyGroupId
Type: Microsoft.SharePoint.Administration.SPUserCodeAssemblyGroupIdThe assembly group which needs to be used.
siteCollectionId
Type: System.GuidThe site collection identifier of the site which the wrapper object will be working within.
availableInstances
Type: System.Collections.ObjectModel.ReadOnlyCollection<SPUserCodeServiceInstance>List of available service instances in the current farm.
Return Value
Type: Microsoft.SharePoint.Administration.SPUserCodeActivationSiteInfo
Returns a SPUserCodeActivationSiteInfo list of available service instances in the current farm.
See Also
Reference
SPUserCodeLoadBalancerProvider Class