SPLimitedWebPartManager.GetStorageKey Method
Gets the unique identifier set by the Web Part Framework when a Web Part is added to a Web Part Zone.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Function GetStorageKey ( _
webPart As WebPart _
) As Guid
'Usage
Dim instance As SPLimitedWebPartManager
Dim webPart As WebPart
Dim returnValue As Guid
returnValue = instance.GetStorageKey(webPart)
public Guid GetStorageKey(
WebPart webPart
)
Parameters
- webPart
Type: System.Web.UI.WebControls.WebParts.WebPart
Return Value
Type: System.Guid