RoleManagerSection.CookiePath 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
역할 이름을 캐시하는 데 사용되는 쿠키의 가상 경로를 가져오거나 설정합니다.
public:
property System::String ^ CookiePath { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.WhiteSpaceTrimStringConverter))]
[System.Configuration.ConfigurationProperty("cookiePath", DefaultValue="/")]
[System.Configuration.StringValidator(MinLength=1)]
public string CookiePath { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.WhiteSpaceTrimStringConverter))>]
[<System.Configuration.ConfigurationProperty("cookiePath", DefaultValue="/")>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.CookiePath : string with get, set
Public Property CookiePath As String
속성 값
역할 이름을 저장하는 데 사용되는 쿠키의 경로입니다. 기본값은 "/"입니다.
- 특성
예제
다음 코드 예제에서는 속성을 사용 하는 방법을 보여 줍니다 CookiePath . 이 코드 예제는 클래스에 제공된 더 큰 예제의 RoleManagerSection 일부입니다.
// Display CookiePath property.
Console.WriteLine("CookiePath: {0}", configSection.CookiePath);
' Display CookiePath property.
Console.WriteLine("CookiePath: {0}", configSection.CookiePath)
설명
ASP.NET 애플리케이션의 Web.config 파일에서 특성을 설정 cookiePath 하여 역할 이름이 애플리케이션에 대해 캐시되는 쿠키의 경로를 지정할 수 있습니다. 이 속성은 CookiePath Web.config 파일에서 특성 값을 cookiePath 반환합니다. 경로는 대/소문자를 구분합니다.