Compartir por


ProcessModelSection.ComAuthenticationLevel Propiedad

Definición

Obtiene o establece un valor que indica el nivel de autenticación para la seguridad 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

Valor de propiedad

Uno de los ProcessModelComAuthenticationLevel valores. El valor predeterminado es Connect.

Atributos

Ejemplos

En el ejemplo de código siguiente se muestra cómo acceder a la ComAuthenticationLevel propiedad .


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

Comentarios

Cuando este valor de propiedad se establece Defaulten , DCOM determina el nivel de autenticación mediante su algoritmo de negociación de seguridad normal. El valor predeterminado asignado a esta propiedad, como se especifica en el archivo Machine.config, es Connect. En este caso, DCOM autentica las credenciales del cliente solo cuando el cliente establece una relación con el servidor.

Se aplica a