Sitecore 5.0 API

PropertyStore Class

Defines a meta data store for a database.

For a list of all members of this type, see PropertyStore Members.

System.Object
   Sitecore.Data.PropertyStore
      Sitecore.Data.DatabaseProperties
      Sitecore.SecurityModel.UserProperties

[Visual Basic]
Public Class PropertyStore
[C#]
public class PropertyStore

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

Properties are name/value pairs. Both name and value are strings.

To get the value with a specified key using the Item property.

A key can be removed using the Remove method. This will permanently remove the property from the database.

Keys with a common prefix can be removed using the RemovePrefix methods. All keys, which starts with the prefix, are removed from the database.

To store a date/time value in a property use the GetDateValue and SetDateValue methods. The date/time values are automatically converted to strings before storing and converted to date/time value before retrieving.

To store an integer value in a property use the GetIntValue and SetIntValue methods.

Requirements

Namespace: Sitecore.Data

Assembly: Sitecore.Kernel (in Sitecore.Kernel.dll)

See Also

PropertyStore Members | Sitecore.Data Namespace