Partilhar via


IServiceAdministration.CreateProxy Method

Creates a proxy for the specified service application.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

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