MemoryCacheElement.Name Property


Gets or sets the name of a particular cache configuration.

 property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("name", DefaultValue="", IsKey=true, IsRequired=true)]
public string Name { get; set; }
[<System.Configuration.ConfigurationProperty("name", DefaultValue="", IsKey=true, IsRequired=true)>]
member this.Name : string with get, set
Public Property Name As String

Property Value


The name of a cache configuration.



The Name property value is the unique identifier for a particular named cache configuration. Each cache configuration must have a unique ID.

In the memoryCache section of a configuration file, a unique cache configuration is defined by a namedCaches configuration collection. Each named cache entry requires a unique name in the configuration file. This value must be at least one character long.

For more information about how to configure the cache, see <namedCaches> Element (Cache Settings).

Applies to

See also