Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates the service application proxy.
Namespace: Microsoft.SharePoint.BusinessData.SharedService
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function CreateProxy ( _
serviceApplicationProxyType As Type, _
name As String, _
serviceApplicationUri As Uri, _
provisioningContext As SPServiceProvisioningContext _
) As SPServiceApplicationProxy
'Usage
Dim instance As BdcServiceProxy
Dim serviceApplicationProxyType As Type
Dim name As String
Dim serviceApplicationUri As Uri
Dim provisioningContext As SPServiceProvisioningContext
Dim returnValue As SPServiceApplicationProxy
returnValue = instance.CreateProxy(serviceApplicationProxyType, _
name, serviceApplicationUri, provisioningContext)
public SPServiceApplicationProxy CreateProxy(
Type serviceApplicationProxyType,
string name,
Uri serviceApplicationUri,
SPServiceProvisioningContext provisioningContext
)
Parameters
serviceApplicationProxyType
Type: System.TypeThe type of the proxy.
name
Type: System.StringThe proxy name.
serviceApplicationUri
Type: System.UriThe URI of the service application.
provisioningContext
Type: Microsoft.SharePoint.Administration.SPServiceProvisioningContextThe provisioning context.
Return value
Type: Microsoft.SharePoint.Administration.SPServiceApplicationProxy
The service application proxy.
Exceptions
| Exception | Condition |
|---|---|
| NotSupportedException | If the serviceApplicationProxyType parameter is not equal to the type of BdcServiceApplicationProxy. |