SPLimitedWebPartManager.SPConnectWebParts-Methode (WebPart, ProviderConnectionPoint, WebPart, ConsumerConnectionPoint, WebPartTransformer)
Verbindet zwei Webparts Verbindungspunkte einen Transformator Verbindung verwenden.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function SPConnectWebParts ( _
provider As WebPart, _
providerConnectionPoint As ProviderConnectionPoint, _
consumer As WebPart, _
consumerConnectionPoint As ConsumerConnectionPoint, _
transformer As WebPartTransformer _
) As SPWebPartConnection
'Usage
Dim instance As SPLimitedWebPartManager
Dim provider As WebPart
Dim providerConnectionPoint As ProviderConnectionPoint
Dim consumer As WebPart
Dim consumerConnectionPoint As ConsumerConnectionPoint
Dim transformer As WebPartTransformer
Dim returnValue As SPWebPartConnection
returnValue = instance.SPConnectWebParts(provider, _
providerConnectionPoint, consumer, _
consumerConnectionPoint, transformer)
public SPWebPartConnection SPConnectWebParts(
WebPart provider,
ProviderConnectionPoint providerConnectionPoint,
WebPart consumer,
ConsumerConnectionPoint consumerConnectionPoint,
WebPartTransformer transformer
)
Parameter
provider
Typ: System.Web.UI.WebControls.WebParts.WebPartProvider-Webpart.
providerConnectionPoint
Typ: System.Web.UI.WebControls.WebParts.ProviderConnectionPointDer Anbieterverbindungspunkt.
consumer
Typ: System.Web.UI.WebControls.WebParts.WebPartDie Consumer-Webpart.
consumerConnectionPoint
Typ: System.Web.UI.WebControls.WebParts.ConsumerConnectionPointDie Consumer-Verbindungspunkt.
transformer
Typ: System.Web.UI.WebControls.WebParts.WebPartTransformerDas Webpart Transformator zwischen Verbindungspunkten.
Rückgabewert
Typ: Microsoft.SharePoint.WebPartPages.SPWebPartConnection
Das SPWebPartConnection -Objekt für die verbundenen Verbindungspunkte.
Ausnahmen
Ausnahme | Bedingung |
---|---|
WebPartPageUserException | Der Anbieter oder Consumer-Webpart ist nicht auf der Seite. |
Siehe auch
Referenz
SPLimitedWebPartManager Klasse