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
)
參數
assemblyGroupId
Type: Microsoft.SharePoint.Administration.SPUserCodeAssemblyGroupId沙箱化解決方案的組件群組。
siteCollectionId
Type: System.Guid呼叫的沙箱化解決方案時所在的網站集合的識別碼。
availableInstances
Type: System.Collections.ObjectModel.ReadOnlyCollection<SPUserCodeServiceInstance>在目前的伺服器陣列中的使用者程式碼主機服務提供的執行個體的清單。
傳回值
Type: Microsoft.SharePoint.Administration.SPUserCodeActivationSiteInfo
用以處理的沙箱化解決方案的使用者程式碼執行主機服務執行個體。
請參閱
參照
SPUserCodeRandomLoadBalancerProvider class