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

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

IServiceAdministration members

Microsoft.SharePoint.Administration namespace