Bagikan melalui


ProcessModelSection.ComAuthenticationLevel Properti

Definisi

Mendapatkan atau menetapkan nilai yang menunjukkan tingkat autentikasi untuk keamanan 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

Nilai Properti

Salah ProcessModelComAuthenticationLevel satu nilai. Nilai defaultnya adalah Connect.

Atribut

Contoh

Contoh kode berikut menunjukkan cara mengakses ComAuthenticationLevel properti.


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

Keterangan

Ketika nilai properti ini diatur ke Default, DCOM menentukan tingkat autentikasi menggunakan algoritma negosiasi keamanan normalnya. Nilai default yang ditetapkan ke properti ini, seperti yang ditentukan dalam file Machine.config, adalah Connect. Dalam hal ini, DCOM mengautentikasi kredensial klien hanya ketika klien membuat hubungan dengan server.

Berlaku untuk