SPWebPartManager.SPDisconnectWebParts method

Disconnects two connected Web Parts.

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

Syntax

'Declaration
Public Sub SPDisconnectWebParts ( _
    spConnection As SPWebPartConnection _
)
'Usage
Dim instance As SPWebPartManager
Dim spConnection As SPWebPartConnection

instance.SPDisconnectWebParts(spConnection)
public void SPDisconnectWebParts(
    SPWebPartConnection spConnection
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

The parameter is a null reference (Nothing in Visual Basic).

Remarks

Connection information is stored in the consumer Web Part.

See also

Reference

SPWebPartManager class

SPWebPartManager members

Microsoft.SharePoint.WebPartPages namespace