다음을 통해 공유


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 의해 정의됩니다. 명명된 각 캐시 항목에는 구성 파일에 고유한 이름이 필요합니다. 이 값은 하나 이상의 문자 길이여야 합니다.

캐시를 구성하는 방법에 대한 자세한 내용은 namedCaches> 요소(캐시 설정)를 참조<하세요.

적용 대상

추가 정보