MemoryCacheElement.Name 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定特定快取設定的名稱。
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
屬性值
快取設定的名稱。
- 屬性
備註
Name屬性值是特定命名快取配置的唯一識別碼。 每個快取配置必須有唯一的 ID。
在設定檔的部分 memoryCache ,由一個設定集合定義 namedCaches 獨特的快取設定。 每個命名快取項目在設定檔中都需要一個唯一的名稱。 這個值必須至少一個字元長。
欲了解更多如何配置快取的資訊,請參閱 <namedCaches> 元素(快取設定)。