SPWebPartManager.SPDisconnectWebParts method
中斷連接兩個連接的 Web 組件。
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Sub SPDisconnectWebParts ( _
spConnection As SPWebPartConnection _
)
'用途
Dim instance As SPWebPartManager
Dim spConnection As SPWebPartConnection
instance.SPDisconnectWebParts(spConnection)
public void SPDisconnectWebParts(
SPWebPartConnection spConnection
)
參數
spConnection
Type: Microsoft.SharePoint.WebPartPages.SPWebPartConnection若要中斷連線。
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | 這個參數是a null reference (Nothing in Visual Basic)。 |
備註
連線資訊儲存在使用者網頁組件。