다음을 통해 공유


FormsAuthenticationConfiguration.Domain 속성

정의

양식 인증 쿠키를 사용하여 보낼 도메인 이름을 가져오거나 설정합니다.

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 대한 섹션의 특성보다 우선합니다.

적용 대상