Share via


MemoryCacheElement.Name プロパティ

定義

特定のキャッシュ構成の名前を取得または設定します。

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 定義されます。 各名前付きキャッシュ エントリには、構成ファイルに一意の名前が必要です。 この値は、少なくとも 1 文字の長さにする必要があります。

キャッシュを構成する方法の詳細については、「namedCaches> 要素 (キャッシュ設定)」を参照してください<

適用対象

こちらもご覧ください