MemoryCacheElement.Name Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the name of a particular cache configuration.
public:
property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.WhiteSpaceTrimStringConverter))]
[System.Configuration.ConfigurationProperty("name", DefaultValue="", IsKey=true, IsRequired=true)]
[System.Configuration.StringValidator(MinLength=1)]
public string Name { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.WhiteSpaceTrimStringConverter))>]
[<System.Configuration.ConfigurationProperty("name", DefaultValue="", IsKey=true, IsRequired=true)>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.Name : string with get, set
Public Property Name As String
Property Value
The name of a cache configuration.
- Attributes
Remarks
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).