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.TypeLe type du proxy.
name
Type : System.StringLe nom du proxy.
serviceApplicationUri
Type : System.UriURI de l'application de service.
provisioningContext
Type : Microsoft.SharePoint.Administration.SPServiceProvisioningContextLe contexte de mise en 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
Microsoft.SharePoint.BusinessData.SharedService - Espace de noms