共用方式為


BdcServiceProxy.CreateProxy Method

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.Type

    The type of the proxy.

  • serviceApplicationUri
    Type: System.Uri

    The URI of the service application.

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.

See Also

Reference

BdcServiceProxy Class

BdcServiceProxy Members

Microsoft.SharePoint.BusinessData.SharedService Namespace