TechTalk Genome v4.2

GenomeDataSource.UseObjectAsDataKey Property

Gets or sets a value that indicates whether the object itself should be retrieved as a data key instead of a PersistentDataKey<T> instance.

[DefaultValue(Value="False")]
[WebExtensionDescription(Description="Whether the persistent object proxy should be retrieved as data key instead of a PersistentDataKey<T> instance")]
public bool UseObjectAsDataKey {get; set;}

Property Value

true if the object itself should be used as a data key; otherwise, false. The default value is false.

Implements

IGenomeDataSource.UseObjectAsDataKey

Remarks

If the element type of the data source is not persistent (e.g. the data source is a Set<string>), the data key of the items can be the object (string) itself. In this case, you can set UseObjectAsDataKey for this property to . If the data source is a Set of persistent objects, it is recommended to use PersistentDataKey<T> objects as data key.

Requirements

Namespace: TechTalk.Genome.Extensions.Web.UI

Assembly: TechTalk.Genome.Extensions.Web (in TechTalk.Genome.Extensions.Web.dll)

Version: 4.2.4.4

Editions: Professional, Evaluation, Express

See Also

GenomeDataSource Class | TechTalk.Genome.Extensions.Web.UI Namespace