IServiceProxyAdministration.CreateProxy method
建立指定的服務應用程式 proxy 類型執行個體。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Function CreateProxy ( _
serviceApplicationProxyType As Type, _
name As String, _
serviceApplicationUri As Uri, _
provisioningContext As SPServiceProvisioningContext _
) As SPServiceApplicationProxy
'用途
Dim instance As IServiceProxyAdministration
Dim serviceApplicationProxyType As Type
Dim name As String
Dim serviceApplicationUri As Uri
Dim provisioningContext As SPServiceProvisioningContext
Dim returnValue As SPServiceApplicationProxy
returnValue = instance.CreateProxy(serviceApplicationProxyType, _
name, serviceApplicationUri, provisioningContext)
SPServiceApplicationProxy CreateProxy(
Type serviceApplicationProxyType,
string name,
Uri serviceApplicationUri,
SPServiceProvisioningContext provisioningContext
)
參數
serviceApplicationProxyType
Type: System.Type若要建立的服務應用程式 proxy 的類型。
name
Type: System.String新的服務應用程式 proxy 的名稱。
serviceApplicationUri
Type: System.Uri統一資源識別元 (URI) 的新服務應用程式 proxy。
provisioningContext
Type: Microsoft.SharePoint.Administration.SPServiceProvisioningContext預設佈建參數的新服務應用程式 proxy。
傳回值
Type: Microsoft.SharePoint.Administration.SPServiceApplicationProxy
會傳回新的服務應用程式 proxy。
請參閱
參照
IServiceProxyAdministration interface