GetSPWebPartConnectionByID method
Collapse the table of content
Expand the table of content

DataFormWebPart.GetSPWebPartConnectionByID method

Gets the SPWebPartConnection object by its ConsumerID value.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

protected SPWebPartConnection GetSPWebPartConnectionByID(
	string connectionID


Type: System.String

The value of the ConsumerID property of the SPWebPartConnection to be returned.

Return value

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.

© 2015 Microsoft