AuthenticationSection.Forms 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
Forms 요소 속성을 가져옵니다.
public:
property System::Web::Configuration::FormsAuthenticationConfiguration ^ Forms { System::Web::Configuration::FormsAuthenticationConfiguration ^ get(); };
[System.Configuration.ConfigurationProperty("forms")]
public System.Web.Configuration.FormsAuthenticationConfiguration Forms { get; }
[<System.Configuration.ConfigurationProperty("forms")>]
member this.Forms : System.Web.Configuration.FormsAuthenticationConfiguration
Public ReadOnly Property Forms As FormsAuthenticationConfiguration
속성 값
폼 기반 인증에 사용할 정보가 들어 있는 Forms 요소 속성입니다.
- 특성
예제
다음 코드 예제를 사용 하는 방법을 보여 줍니다는 Forms 요소 속성입니다.
// Get the current Forms property.
FormsAuthenticationConfiguration currentForms =
authenticationSection.Forms;
// Get the Forms attributes.
string name = currentForms.Name;
string login = currentForms.LoginUrl;
string path = currentForms.Path;
HttpCookieMode cookieLess = currentForms.Cookieless;
bool requireSSL = currentForms.RequireSSL;
bool slidingExpiration = currentForms.SlidingExpiration;
bool enableXappRedirect = currentForms.EnableCrossAppRedirects;
TimeSpan timeout = currentForms.Timeout;
FormsProtectionEnum protection = currentForms.Protection;
string defaultUrl = currentForms.DefaultUrl;
string domain = currentForms.Domain;
' Get the current Forms property.
Dim currentForms _
As FormsAuthenticationConfiguration = _
authenticationSection.Forms
' Get the Forms attributes.
Dim name As String = _
currentForms.Name
Dim login As String = _
currentForms.LoginUrl
Dim path As String = _
currentForms.Path
Dim cookieLess As HttpCookieMode = _
currentForms.Cookieless
Dim requireSSL As Boolean = _
currentForms.RequireSSL
Dim slidingExpiration As Boolean = _
currentForms.SlidingExpiration
Dim enableXappRedirect As Boolean = _
currentForms.EnableCrossAppRedirects
Dim timeout As TimeSpan = _
currentForms.Timeout
Dim protection As FormsProtectionEnum = _
currentForms.Protection
Dim defaultUrl As String = _
currentForms.DefaultUrl
Dim domain As String = _
currentForms.Domain