SPLimitedWebPartManager.SPConnectWebParts - Méthode (WebPart, ProviderConnectionPoint, WebPart, ConsumerConnectionPoint)
Relie les deux points de connexion de composant WebPart compatibles.
Espace de noms : Microsoft.SharePoint.WebPartPages
Assembly : Microsoft.SharePoint (dans Microsoft.SharePoint.dll)
Syntaxe
'Déclaration
Public Function SPConnectWebParts ( _
provider As WebPart, _
providerConnectionPoint As ProviderConnectionPoint, _
consumer As WebPart, _
consumerConnectionPoint As ConsumerConnectionPoint _
) As SPWebPartConnection
'Utilisation
Dim instance As SPLimitedWebPartManager
Dim provider As WebPart
Dim providerConnectionPoint As ProviderConnectionPoint
Dim consumer As WebPart
Dim consumerConnectionPoint As ConsumerConnectionPoint
Dim returnValue As SPWebPartConnection
returnValue = instance.SPConnectWebParts(provider, _
providerConnectionPoint, consumer, _
consumerConnectionPoint)
public SPWebPartConnection SPConnectWebParts(
WebPart provider,
ProviderConnectionPoint providerConnectionPoint,
WebPart consumer,
ConsumerConnectionPoint consumerConnectionPoint
)
Paramètres
provider
Type : System.Web.UI.WebControls.WebParts.WebPartLe contrôle WebPart du fournisseur.
providerConnectionPoint
Type : System.Web.UI.WebControls.WebParts.ProviderConnectionPointLe point de connexion fournisseur.
consumer
Type : System.Web.UI.WebControls.WebParts.WebPartLe client Web Part.control.
consumerConnectionPoint
Type : System.Web.UI.WebControls.WebParts.ConsumerConnectionPointLe point de connexion consommateur.
Valeur renvoyée
Type : Microsoft.SharePoint.WebPartPages.SPWebPartConnection
L'objet SPWebPartConnection pour les points de connexion connecté.
Exceptions
Exception | Condition |
---|---|
WebPartPageUserException | Le fournisseur ou le composant WebPart consommateur n'est pas sur la page. |
Voir aussi
Référence
SPLimitedWebPartManager classe