Share via


BdcService.CreateProxy method

Creates an instance of a BdcServiceApplicationProxy object for the given service application, which must be a BdcServiceApplication object.

Namespace:  Microsoft.SharePoint.BusinessData.SharedService
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Function CreateProxy ( _
    name As String, _
    serviceApplication As SPServiceApplication, _
    provisioningContext As SPServiceProvisioningContext _
) As SPServiceApplicationProxy
'Usage
Dim instance As BdcService
Dim name As String
Dim serviceApplication As SPServiceApplication
Dim provisioningContext As SPServiceProvisioningContext
Dim returnValue As SPServiceApplicationProxy

returnValue = instance.CreateProxy(name, _
    serviceApplication, provisioningContext)
public SPServiceApplicationProxy CreateProxy(
    string name,
    SPServiceApplication serviceApplication,
    SPServiceProvisioningContext provisioningContext
)

Parameters

Return value

Type: Microsoft.SharePoint.Administration.SPServiceApplicationProxy
A new BdcServiceApplicationProxy.

Remarks

This method uses the context that is provided to select an application pool to run as.

See also

Reference

BdcService class

BdcService members

Microsoft.SharePoint.BusinessData.SharedService namespace