SPWebPartManager.DisconnectWebParts Method
Carries out the process of disconnecting server controls that are connected on a Web page.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Overrides Sub DisconnectWebParts ( _
connection As WebPartConnection _
)
'Usage
Dim instance As SPWebPartManager
Dim connection As WebPartConnection
instance.DisconnectWebParts(connection)
public override void DisconnectWebParts(
WebPartConnection connection
)
Parameters
connection
Type: System.Web.UI.WebControls.WebParts.WebPartConnectionA WebPartConnection that represents the connection between server controls.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The connection is a null reference (Nothing in Visual Basic). |
Remarks
This override calls the SPDisconnectWebParts(SPWebPartConnection) method to disconnect the controls.