Condividi tramite


DataFormWebPart.GetSPWebPartConnectionByID Method

Gets the SPWebPartConnection object by its ConsumerID value.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Protected Function GetSPWebPartConnectionByID ( _
    connectionID As String _
) As SPWebPartConnection
'Usage
Dim connectionID As String
Dim returnValue As SPWebPartConnection

returnValue = Me.GetSPWebPartConnectionByID(connectionID)
protected SPWebPartConnection GetSPWebPartConnectionByID(
    string connectionID
)

Parameters

Return Value

Type: Microsoft.SharePoint.WebPartPages.SPWebPartConnection
The DataFormWebPart’s connection whose ConsumerID equals to connectionID.

Remarks

This method returns the SPWebPartConnection with the specified connection ID. The value of the connectionID parameter must also equal the value of the ID property.

See Also

Reference

DataFormWebPart Class

DataFormWebPart Members

Microsoft.SharePoint.WebPartPages Namespace