Sdílet prostřednictvím


IAuthenticationModule.CanPreAuthenticate Vlastnost

Definice

Získá hodnotu určující, zda ověřovací modul podporuje předběžné ověření.

public:
 property bool CanPreAuthenticate { bool get(); };
public bool CanPreAuthenticate { get; }
member this.CanPreAuthenticate : bool
Public ReadOnly Property CanPreAuthenticate As Boolean

Hodnota vlastnosti

true pokud autorizační modul podporuje předběžné ověření; jinak false.

Příklady

Následující příklad ukazuje, jak použít CanPreAuthenticate vlastnost. Úplný příklad odkazuje na AuthenticationManager třídu.

// Define the authentication type. This type is then used to identify this
// custom authentication module. The default is set to Basic.
public string AuthenticationType { get; } = "Basic";

// Define the pre-authentication capabilities for the module. The default is set
// to false.
public bool CanPreAuthenticate { get; }
Private m_authenticationType As String
Private m_canPreAuthenticate As Boolean


' The CustomBasic constructor initializes the properties of the customized 
' authentication.
Public Sub New()
  m_authenticationType = "Basic"
  m_canPreAuthenticate = False
End Sub

' Define the authentication type. This type is then used to identify this
' custom authentication module. The default is set to Basic.

Public ReadOnly Property AuthenticationType() As String _
 Implements IAuthenticationModule.AuthenticationType

  Get
    Return m_authenticationType
  End Get
End Property

' Define the pre-authentication capabilities for the module. The default is set
' to false.

Public ReadOnly Property CanPreAuthenticate() As Boolean _
 Implements IAuthenticationModule.CanPreAuthenticate


  Get
    Return m_canPreAuthenticate
  End Get
End Property

Poznámky

Vlastnost CanPreAuthenticate je nastavena tak, aby true indikoval, že ověřovací modul může reagovat s platnou PreAuthenticateAuthorization instancí při zavolání metody.

Poznámky pro implementátory

Obvykle se jedná o pevnou hodnotu; Buď může ověřovací modul provést předběžné ověření, nebo nemůže.

Platí pro