IAuthenticationModule.AuthenticationType Proprietà

Definizione

Recupera il tipo di autenticazione fornito da questo modulo di autenticazione.Gets the authentication type provided by this authentication module.

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

Valore della proprietà

Una stringa che indica il tipo di autenticazione fornito da questo modulo di autenticazione.A string indicating the authentication type provided by this authentication module.

Esempi

Nell'esempio seguente viene illustrato come utilizzare la proprietà AuthenticationType.The following example shows how to use the AuthenticationType property. Per un esempio completo, vedere la AuthenticationManager classe.For a complete example refer to the AuthenticationManager class.

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

Commenti

La AuthenticationType proprietà identifica il tipo di autenticazione implementato da questo modulo di autenticazione.The AuthenticationType property identifies the authentication type implemented by this authentication module. La AuthenticationType proprietà viene usata AuthenticationManager.Register dal metodo per determinare se il modulo di autenticazione è stato AuthenticationManager.Unregister registrato e dal metodo per rimuovere un modulo di autenticazione registrato.The AuthenticationType property is used by the AuthenticationManager.Register method to determine if the authentication module has been registered, and by the AuthenticationManager.Unregister method to remove a registered authentication module.

Si applica a