SPWebPartManager.GetStorageKey 方法

返回为指定的 Web 部件页上的存储键。

命名空间:  Microsoft.SharePoint.WebPartPages
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
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
)

参数

返回值

类型:System.Guid
为此 Web 部件存储键。

异常

异常 条件
ArgumentNullException

Web 部件是空引用(无 在 Visual Basic 中)。

WebPartPageUserException

Web 部件不包含此SPWebPartManager页上。

另请参阅

引用

SPWebPartManager 类

SPWebPartManager 成员

Microsoft.SharePoint.WebPartPages 命名空间