共用方式為


SPUserCodeRandomLoadBalancerProvider.GetActivationSite method

取得要用於所要求的沙箱化解決方案的使用者程式碼主機服務執行個體。

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Overrides Function GetActivationSite ( _
    assemblyGroupId As SPUserCodeAssemblyGroupId, _
    siteCollectionId As Guid, _
    availableInstances As ReadOnlyCollection(Of SPUserCodeServiceInstance) _
) As SPUserCodeActivationSiteInfo
'用途
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
)

參數

  • siteCollectionId
    Type: System.Guid

    呼叫的沙箱化解決方案時所在的網站集合的識別碼。

傳回值

Type: Microsoft.SharePoint.Administration.SPUserCodeActivationSiteInfo
用以處理的沙箱化解決方案的使用者程式碼執行主機服務執行個體。

請參閱

參照

SPUserCodeRandomLoadBalancerProvider class

SPUserCodeRandomLoadBalancerProvider members

Microsoft.SharePoint.Administration namespace