Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

WebPart.StorageKey Property

Windows SharePoint Services 3

Gets the unique identifier set by the Web Part infrastructure when a Web Part is added to a Web Part Zone.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public Guid StorageKey { get; }

Property Value

Type: System.Guid
For a Web Part added to a WebPartZone control, the Web Part infrastructure sets a System.Guid value. For a Web Part outside of a WebPartZone control (properties are not saved in the WebParts table of the Windows SharePoint Services database), the value is set to Guid.Empty.

The StorageKey property cannot be modified because it is the unique identifier that the Web Part infrastructure uses to read and write the properties for the Web Part.

Community Additions

© 2015 Microsoft