StorageKey Property (WPSC)
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
The unique identifier of a Web Part that distinguishes it from all of the parts on a Web Part Page.
objPart.StorageKey
Parameters
Parameter |
Description |
---|---|
objPart |
A reference to a Part Object. |
Remarks
For Web Parts that are stored in the Microsoft Windows SharePoint Services database, this string contains a GUID. For static Web Parts (Web Parts embedded on an .aspx page, not in a Web Part zone) the value is set to "00000000-0000-0000-0000-000000000000".
The value of the StorageKey property is created when the Web Part is registered for the Web Part Page. It is used by the State Management service to post modifications back to the store module. The StorageKey value is supplied as an argument in calls to the POST and GET methods.
Example 1: Microsoft Visual Basic Scripting Edition
Code
strStorageKey = varPart_WPQ_.StorageKey
Example 2: Microsoft JScript
Code
var strStorageKey = varPart_WPQ_.StorageKey;
Requirements
Applies to: Part Object