FormsAuthenticationConfiguration.Domain 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
양식 인증 쿠키를 사용하여 보낼 도메인 이름을 가져오거나 설정합니다.
public:
property System::String ^ Domain { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("domain", DefaultValue="")]
public string Domain { get; set; }
[<System.Configuration.ConfigurationProperty("domain", DefaultValue="")>]
member this.Domain : string with get, set
Public Property Domain As String
속성 값
나가는 양식 인증 쿠키에 대한 도메인의 이름입니다. 기본값은 빈 문자열입니다.
- 특성
예제
다음 코드 예제에서는 속성에 액세스 하는 방법을 보여 있습니다 Domain . 섹션을 가져오는 방법을 알아보려면 클래스 항목의 FormsAuthenticationConfiguration 코드 예제를 참조하세요.
// Get the current Domain.
string currentDomain =
formsAuthentication.Domain;
// Set the current Domain
formsAuthentication.Domain = "newDomain";
' Get the current Domain.
Dim currentDomain As String = formsAuthentication.Domain
' Set the current Domain
formsAuthentication.Domain = "newDomain"
설명
인증 Domain 쿠키에 사용됩니다.
이 속성의 값 HttpCookie.Domain에 해당 합니다.
이 설정은 양식 인증 쿠키에 domainforms 대한 섹션의 특성보다 우선합니다.