WordServiceProxy.CreateProxy Method
Creates a new service application proxy.
Namespace: Microsoft.Office.Word.Server.Service
Assembly: Microsoft.Office.Word.Server (in Microsoft.Office.Word.Server.dll)
Syntax
'Declaration
Public Function CreateProxy ( _
serviceApplicationProxyType As Type, _
name As String, _
serviceApplicationUri As Uri, _
provisioningContext As SPServiceProvisioningContext _
) As SPServiceApplicationProxy
'Usage
Dim instance As WordServiceProxy
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)
public SPServiceApplicationProxy CreateProxy(
Type serviceApplicationProxyType,
string name,
Uri serviceApplicationUri,
SPServiceProvisioningContext provisioningContext
)
Parameters
serviceApplicationProxyType
Type: System.TypeA [System.Type] that specifies the type of the service application proxy.
name
Type: System.StringA string that specifies the name of the service application proxy.
serviceApplicationUri
Type: System.UriA [System.Uri] that specifies the address of the service application proxy.
provisioningContext
Type: Microsoft.SharePoint.Administration.SPServiceProvisioningContextA SPServiceProvisioningContext that specifies the default provisioning parameters for the service application proxy.
Return Value
Type: Microsoft.SharePoint.Administration.SPServiceApplicationProxy
Returns SPServiceApplicationProxy.
Implements
IServiceProxyAdministration.CreateProxy(Type, String, Uri, SPServiceProvisioningContext)
Remarks
If the service application proxy already exists, this method returns the existing WordServiceApplicationProxy.