Compartir a través de


(WebPart, ProviderConnectionPoint, WebPart, ConsumerConnectionPoint) del método SPLimitedWebPartManager.SPConnectWebParts

Se conecta a dos puntos de conexión de elemento Web compatibles.

Espacio de nombres:  Microsoft.SharePoint.WebPartPages
Ensamblado:  Microsoft.SharePoint (en Microsoft.SharePoint.dll)

Sintaxis

'Declaración
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

Valor devuelto

Tipo: Microsoft.SharePoint.WebPartPages.SPWebPartConnection
El objeto SPWebPartConnection para los puntos de conexión conectados.

Excepciones

Excepción Condición
WebPartPageUserException

El proveedor o el elemento Web de consumidor no está en la página.

Vea también

Referencia

clase SPLimitedWebPartManager

Miembros SPLimitedWebPartManager

Sobrecarga SPConnectWebParts

Espacio de nombres Microsoft.SharePoint.WebPartPages