ProcessModelSection.ComAuthenticationLevel Własność
Definicja
Ważny
Niektóre informacje dotyczą produktów przedpremierowych, które mogą zostać znacznie zmodyfikowane przed premierą. Microsoft nie udziela żadnych gwarancji, ani wyraźnych, ani domniemanych, dotyczących informacji podanych tutaj.
Pobiera lub ustawia wartość wskazującą poziom uwierzytelniania dla zabezpieczeń 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
Wartość nieruchomości
Jedna z ProcessModelComAuthenticationLevel wartości. Wartość domyślna to Connect.
- Atrybuty
Przykłady
Poniższy przykład kodu pokazuje, jak uzyskać dostęp ComAuthenticationLevel do właściwości.
// 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
Uwagi
Gdy ta wartość właściwości jest ustawiona na Default, DCOM określa poziom uwierzytelniania przy użyciu normalnego algorytmu negocjacji zabezpieczeń. Wartość domyślna przypisana do tej właściwości, jak określono w pliku Machine.config, to Connect. W takim przypadku model DCOM uwierzytelnia poświadczenia klienta tylko wtedy, gdy klient ustanawia relację z serwerem.