次の方法で共有


IAuthenticationModule.CanPreAuthenticate プロパティ

定義

認証モジュールが事前認証をサポートしているかどうかを示す値を取得します。

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

プロパティ値

承認モジュールが事前認証をサポートしている場合は true。それ以外の場合は false

CanPreAuthenticate プロパティを使用する方法を次の例に示します。 完全な例については、 クラスを AuthenticationManager 参照してください。

// 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

注釈

プロパティはCanPreAuthenticate、 メソッドが呼び出されたときにPreAuthenticate認証モジュールが有効なAuthorizationインスタンスで応答できることを示すために にtrue設定されます。

注意 (実装者)

通常、これは固定値です。認証モジュールで事前認証が可能であるか、認証モジュールで認証できないかのどちらかです。

適用対象