Gets an array of objects representing the key of the BasePersistableObject.

Namespace:  C1.C1Schedule
Assembly:  C1.Web.UI.Controls.2 (in C1.Web.UI.Controls.2.dll)


public Object[] Key { get; }
Visual Basic
Public ReadOnly Property Key As Object()


In the current version, the array always contains a single object. It can be either an Int32 or Guid value depending on which one is actually used for binding this data. For example, if you bind AppointmentStorage to the database and set IndexMapping, this property will return an Int32 value. If you set IdMapping, this property will return a Guid value.

In future versions working with compound keys might be implemented. In such case this property will return array of objects composing the key.

See Also