SPLimitedWebPartManager.SPConnectWebParts method (WebPart, ProviderConnectionPoint, WebPart, ConsumerConnectionPoint)
Conecta dois pontos de conexão de Web Parts compatíveis.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaração
Public Function SPConnectWebParts ( _
provider As WebPart, _
providerConnectionPoint As ProviderConnectionPoint, _
consumer As WebPart, _
consumerConnectionPoint As ConsumerConnectionPoint _
) As SPWebPartConnection
'Uso
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
)
Parâmetros
provider
Type: System.Web.UI.WebControls.WebParts.WebPartO controle de Web Part do provedor.
providerConnectionPoint
Type: System.Web.UI.WebControls.WebParts.ProviderConnectionPointO ponto de conexão do provedor.
consumer
Type: System.Web.UI.WebControls.WebParts.WebPartO consumidor Part.control da Web.
consumerConnectionPoint
Type: System.Web.UI.WebControls.WebParts.ConsumerConnectionPointO ponto de conexão do consumidor.
Valor retornado
Type: Microsoft.SharePoint.WebPartPages.SPWebPartConnection
O objeto SPWebPartConnection para os pontos de conexão conectado.
Exceptions
Exception | Condition |
---|---|
WebPartPageUserException | O provedor ou a Web Part do consumidor não está na página. |