SPWebPartManager.DisconnectWebParts method
執行處理程序的中斷連線連接至網頁的伺服器控制項。
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Overrides Sub DisconnectWebParts ( _
connection As WebPartConnection _
)
'用途
Dim instance As SPWebPartManager
Dim connection As WebPartConnection
instance.DisconnectWebParts(connection)
public override void DisconnectWebParts(
WebPartConnection connection
)
參數
connection
Type: System.Web.UI.WebControls.WebParts.WebPartConnectionWebPartConnection ,表示伺服器控制項之間的連線。
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | connection是a null reference (Nothing in Visual Basic)。 |
備註
這個覆寫呼叫SPDisconnectWebParts(SPWebPartConnection)方法,以中斷連接控制項。