DataFormWebPart.GetSPWebPartConnectionByID method
Gets the SPWebPartConnection object by its ConsumerID value.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
'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
)
connectionID
Type: System.StringThe value of the ConsumerID property of the SPWebPartConnection to be returned.
Type: Microsoft.SharePoint.WebPartPages.SPWebPartConnection
The DataFormWebPart’s connection whose ConsumerID equals to connectionID.
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.