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
name
Type: System.StringThe name of the proxy to make.
serviceApplication
Type: Microsoft.SharePoint.Administration.SPServiceApplicationThe service application to which the proxy should point.
provisioningContext
Type: Microsoft.SharePoint.Administration.SPServiceProvisioningContextThe context from which to draw the application pool that will run the proxy.
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.