IAuthenticationModule.CanPreAuthenticate Eigenschap
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Hiermee wordt een waarde opgehaald die aangeeft of de verificatiemodule ondersteuning biedt voor verificatie vooraf.
public:
property bool CanPreAuthenticate { bool get(); };
public bool CanPreAuthenticate { get; }
member this.CanPreAuthenticate : bool
Public ReadOnly Property CanPreAuthenticate As Boolean
Waarde van eigenschap
true als de autorisatiemodule verificatie vooraf ondersteunt; anders false.
Voorbeelden
In het volgende voorbeeld ziet u hoe u de CanPreAuthenticate eigenschap gebruikt. Raadpleeg de AuthenticationManager klasse voor een volledig voorbeeld.
// 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
Opmerkingen
De CanPreAuthenticate eigenschap is ingesteld om true aan te geven dat de verificatiemodule kan reageren met een geldig exemplaar Authorization wanneer de PreAuthenticate methode wordt aangeroepen.
Notities voor uitvoerders
Dit is doorgaans een vaste waarde; de verificatiemodule kan vooraf worden geverifieerd of niet.