Aracılığıyla paylaş


IAuthenticationModule.AuthenticationType Özellik

Tanım

Bu kimlik doğrulama modülü tarafından sağlanan kimlik doğrulama türünü alır.

public:
 property System::String ^ AuthenticationType { System::String ^ get(); };
public string AuthenticationType { get; }
member this.AuthenticationType : string
Public ReadOnly Property AuthenticationType As String

Özellik Değeri

Bu kimlik doğrulama modülü tarafından sağlanan kimlik doğrulama türünü gösteren bir dize.

Örnekler

Aşağıdaki örnekte özelliğinin nasıl kullanılacağı gösterilmektedir AuthenticationType . Tam bir örnek için sınıfına AuthenticationManager bakın.

   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;
      }

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

Açıklamalar

özelliği, AuthenticationType bu kimlik doğrulama modülü tarafından uygulanan kimlik doğrulama türünü tanımlar. AuthenticationType özelliği, kimlik doğrulama modülünün AuthenticationManager.Register kaydedilip kaydedilmediğini belirlemek için yöntemi ve kayıtlı bir kimlik doğrulama modülünü AuthenticationManager.Unregister kaldırmak için yöntemi tarafından kullanılır.

Şunlara uygulanır