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
spConnection
Type: Microsoft.SharePoint.WebPartPages.SPWebPartConnectionThe connection to disconnect.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The parameter is a null reference (Nothing in Visual Basic). |
Remarks
Connection information is stored in the consumer Web Part.