IAuthenticationModule::AuthenticationType Property

 

Gets the authentication type provided by this authentication module.

Namespace:   System.Net
Assembly:  System (in System.dll)

property String^ AuthenticationType {
	String^ get();
}

Property Value

Type: System::String^

A string indicating the authentication type provided by this authentication module.

The AuthenticationType property identifies the authentication type implemented by this authentication module. 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.

The following example shows how to use the AuthenticationType property. 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;
      }

   }

.NET Framework
Available since 1.1
Return to top
Show: