Share via


ProcessModelSection.ComAuthenticationLevel Propriété

Définition

Obtient ou définit une valeur indiquant le niveau d'authentification pour la sécurité DCOM.

public:
 property System::Web::Configuration::ProcessModelComAuthenticationLevel ComAuthenticationLevel { System::Web::Configuration::ProcessModelComAuthenticationLevel get(); void set(System::Web::Configuration::ProcessModelComAuthenticationLevel value); };
[System.Configuration.ConfigurationProperty("comAuthenticationLevel", DefaultValue=System.Web.Configuration.ProcessModelComAuthenticationLevel.Connect)]
public System.Web.Configuration.ProcessModelComAuthenticationLevel ComAuthenticationLevel { get; set; }
[<System.Configuration.ConfigurationProperty("comAuthenticationLevel", DefaultValue=System.Web.Configuration.ProcessModelComAuthenticationLevel.Connect)>]
member this.ComAuthenticationLevel : System.Web.Configuration.ProcessModelComAuthenticationLevel with get, set
Public Property ComAuthenticationLevel As ProcessModelComAuthenticationLevel

Valeur de propriété

Une des valeurs de l'objet ProcessModelComAuthenticationLevel. La valeur par défaut est Connect.

Attributs

Exemples

L'exemple de code suivant illustre l'accès à la propriété ComAuthenticationLevel.


// Get the current ComAuthenticationLevel property value.
ProcessModelComAuthenticationLevel comAuthLevel = 
   processModelSection.ComAuthenticationLevel;

// Set the ComAuthenticationLevel property to
// ProcessModelComAuthenticationLevel.Call.
processModelSection.ComAuthenticationLevel =
    ProcessModelComAuthenticationLevel.Call;
' Get the current ComAuthenticationLevel property value.
   Dim comAuthLevel _
   As ProcessModelComAuthenticationLevel = _
   processModelSection.ComAuthenticationLevel

' Set the ComAuthenticationLevel property to
' ProcessModelComAuthenticationLevel.Call.
   processModelSection.ComAuthenticationLevel = _
   ProcessModelComAuthenticationLevel.Call

Remarques

Lorsque cette valeur de propriété est définie sur Default, DCOM détermine le niveau d’authentification à l’aide de son algorithme de négociation de sécurité normal. La valeur par défaut affectée à cette propriété, comme spécifié dans le fichier Machine.config, est Connect. Dans ce cas, DCOM authentifie les informations d’identification du client uniquement lorsque le client établit une relation avec le serveur.

S’applique à