ProcessModelSection.ComAuthenticationLevel Propriedade
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Recebe ou define um valor que indica o nível de autenticação para a segurança 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 Propriedade
Um dos ProcessModelComAuthenticationLevel valores. O valor predefinido é Connect.
- Atributos
Exemplos
O seguinte exemplo de código mostra como aceder à ComAuthenticationLevel propriedade.
// 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
Observações
Quando este valor de propriedade é definido para Default, o DCOM determina o nível de autenticação usando o seu algoritmo normal de negociação de segurança. O valor padrão atribuído a esta propriedade, conforme especificado no ficheiro Machine.config, é Connect. Neste caso, o DCOM autentica as credenciais do cliente apenas quando este estabelece uma relação com o servidor.