IServiceAdministration.CreateProxy method
Creates a proxy for the specified service application.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Function CreateProxy ( _
name As String, _
serviceApplication As SPServiceApplication, _
provisioningContext As SPServiceProvisioningContext _
) As SPServiceApplicationProxy
'Usage
Dim instance As IServiceAdministration
Dim name As String
Dim serviceApplication As SPServiceApplication
Dim provisioningContext As SPServiceProvisioningContext
Dim returnValue As SPServiceApplicationProxy
returnValue = instance.CreateProxy(name, _
serviceApplication, provisioningContext)
SPServiceApplicationProxy CreateProxy(
string name,
SPServiceApplication serviceApplication,
SPServiceProvisioningContext provisioningContext
)
Parameters
name
Type: System.StringThe name of the new proxy.
serviceApplication
Type: Microsoft.SharePoint.Administration.SPServiceApplicationThe service application for the new proxy.
provisioningContext
Type: Microsoft.SharePoint.Administration.SPServiceProvisioningContextDefault provisioning parameters for the new proxy.
Return value
Type: Microsoft.SharePoint.Administration.SPServiceApplicationProxy
A new SPServiceApplicationProxy object.
Remarks
Ensure this method is re-entrant by returning the existing instance if it has already been created.
See also
Reference
IServiceAdministration interface