다음을 통해 공유


StorageKey Property (WPSC)

Applies to: SharePoint Foundation 2010

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 SharePoint Foundation 2010 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

See Also

Reference

Init Method

Other Resources

Web Part Page Services Component (WPSC) Object Model