Sets the unique key that is used to save the property value to the data store. This is useful if the property name has been changed, but content was already stored with the previous key. If omitted, the key is equal to the property name. Changing the key will lead to all previous values of this property being inaccessible.

[AttributeUsage]
public sealed class KeyAttribute: IContentPropertyAttribute, IContentTypeAttribute
Inheritance:
ObjectAttributeKeyAttribute
Implements:
IContentPropertyAttributeIContentTypeAttribute

Constructors

KeyAttribute(string)

Properties

Key

Methods

Apply(ContentPropertyDefinition)
Apply(ContentTypeDefinition)