Share via


SPWebPartManager.SPDisconnectWebParts Method

Disconnects two connected Web Parts.

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

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