XmlDataSource.CacheKeyContext Property

Definition

Gets or sets the value of the cache key for the data source control from view state, or adds the cache key to view state.

C#
public virtual string CacheKeyContext { get; set; }

Property Value

The value of the cache key, or an empty string if the cache key is not in view state.

Remarks

The CacheKeyContext property enables you to manually create a cache key for the XmlDataSource control. This is required only if you are assigning an object that contains XML or XSLT data to the control instead of specifying a file that contains the data. When you assign data to the control, the data is not used to generate the cache key. Instead, you must manually generate a unique cache key if you plan to update the data object.

Applies to

Продукт Версии
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1