WebPart.StorageKey Property
Gets the unique identifier that is set by the Web Part infrastructure when a Web Part is added to a Web Part Zone.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
[WebPartStorageAttribute(Storage.None)] [BrowsableAttribute(false)] public Guid StorageKey { get; }
Property Value
Type: System.GuidFor a Web Part that is added to a WebPartZone control, the Web Part infrastructure sets a System.Guid value. For a Web Part that is outside of a WebPartZone control (properties are not saved in the WebParts table of the Microsoft SharePoint Foundation database), the value is set to Guid.Empty.