Partager via


BdcServiceProxy.CreateProxy - Méthode

Crée le proxy d'application de service.

Espace de noms :  Microsoft.SharePoint.BusinessData.SharedService
Assembly :  Microsoft.SharePoint (dans Microsoft.SharePoint.dll)

Syntaxe

'Déclaration
Public Function CreateProxy ( _
    serviceApplicationProxyType As Type, _
    name As String, _
    serviceApplicationUri As Uri, _
    provisioningContext As SPServiceProvisioningContext _
) As SPServiceApplicationProxy
'Utilisation
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
)

Paramètres

  • serviceApplicationProxyType
    Type : System.Type

    Le type du proxy.

  • serviceApplicationUri
    Type : System.Uri

    URI de l'application de service.

Valeur renvoyée

Type : Microsoft.SharePoint.Administration.SPServiceApplicationProxy

Le proxy d'application de service.

Exceptions

Exception Condition
NotSupportedException

Si le paramètre serviceApplicationProxyType n'est pas égal au type de BdcServiceApplicationProxy.

Voir aussi

Référence

BdcServiceProxy classe

BdcServiceProxy - Membres

Microsoft.SharePoint.BusinessData.SharedService - Espace de noms