SPWebPartManager.GetStorageKey method
傳回指定的 Web 組件的儲存機碼,頁面上。
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Function GetStorageKey ( _
webPart As WebPart _
) As Guid
'用途
Dim instance As SPWebPartManager
Dim webPart As WebPart
Dim returnValue As Guid
returnValue = instance.GetStorageKey(webPart)
public Guid GetStorageKey(
WebPart webPart
)
參數
webPart
Type: System.Web.UI.WebControls.WebParts.WebPart儲存索引鍵擷取 [網頁組件。
傳回值
Type: System.Guid
此 Web 組件存放索引鍵。
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | [網頁組件是a null reference (Nothing in Visual Basic)。 |
WebPartPageUserException | [網頁組件不包含這個SPWebPartManager的頁面上。 |