Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Ruft einen Wert ab, der angibt, ob das Authentifizierungsmodul die Vorauthentifizierung unterstützt.
Namespace: System.Net
Assembly: System (in system.dll)
Syntax
'Declaration
ReadOnly Property CanPreAuthenticate As Boolean
'Usage
Dim instance As IAuthenticationModule
Dim value As Boolean
value = instance.CanPreAuthenticate
bool CanPreAuthenticate { get; }
property bool CanPreAuthenticate {
bool get ();
}
/** @property */
boolean get_CanPreAuthenticate ()
function get CanPreAuthenticate () : boolean
Eigenschaftenwert
true, wenn das Authentifizierungsmodul die Vorauthentifizierung unterstützt, andernfalls false.
Hinweise
Die CanPreAuthenticate-Eigenschaft wird auf true festgelegt, um anzugeben, dass das Authentifizierungsmodul bei einem Aufruf der PreAuthenticate-Methode mit einer gültigen Authorization-Instanz antworten kann.
Hinweise für Implementierer Dies ist normalerweise ein fester Wert. Entweder unterstützt das Authentifizierungsmodul eine Vorauthentifizierung oder nicht.
Beispiel
Im folgenden Beispiel wird die Verwendung der CanPreAuthenticate-Eigenschaft veranschaulicht. Ein vollständiges Beispiel finden Sie in der AuthenticationManager-Klasse.
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 'New
' 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
private string m_authenticationType ;
private bool m_canPreAuthenticate ;
// The CustomBasic constructor initializes the properties of the customized
// authentication.
public CustomBasic()
{
m_authenticationType = "Basic";
m_canPreAuthenticate = false;
}
// 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
{
return m_authenticationType;
}
}
// Define the pre-authentication capabilities for the module. The default is set
// to false.
public bool CanPreAuthenticate
{
get
{
return m_canPreAuthenticate;
}
}
String^ m_authenticationType;
bool m_canPreAuthenticate;
public:
// The CustomBasic constructor initializes the properties of the customized
// authentication.
CustomBasic()
{
m_authenticationType = "Basic";
m_canPreAuthenticate = false;
}
property String^ AuthenticationType
{
// Define the authentication type. This type is then used to identify this
// custom authentication module. The default is set to Basic.
virtual String^ get()
{
return m_authenticationType;
}
}
property bool CanPreAuthenticate
{
// Define the pre-authentication capabilities for the module. The default is set
// to false.
virtual bool get()
{
return m_canPreAuthenticate;
}
}
private String m_authenticationType;
private boolean m_canPreAuthenticate;
// The CustomBasic constructor initializes the properties of the customized
// authentication.
public CustomBasic()
{
m_authenticationType = "Basic";
m_canPreAuthenticate = false;
} //CustomBasic
// Define the authentication type. This type is then used to identify this
// custom authentication module. The default is set to Basic.
/** @property
*/
public String get_AuthenticationType()
{
return m_authenticationType;
} //get_AuthenticationType
// Define the pre-authentication capabilities for the module.
// The default is set to false.
/** @property
*/
public boolean get_CanPreAuthenticate()
{
return m_canPreAuthenticate;
} //get_CanPreAuthenticate
Plattformen
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile für Pocket PC, Windows Mobile für Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.
Versionsinformationen
.NET Framework
Unterstützt in: 2.0, 1.1, 1.0
.NET Compact Framework
Unterstützt in: 2.0, 1.0
Siehe auch
Referenz
IAuthenticationModule-Schnittstelle
IAuthenticationModule-Member
System.Net-Namespace