ProcessModelSection.ComAuthenticationLevel Egenskap
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Hämtar eller anger ett värde som anger autentiseringsnivån för DCOM-säkerhet.
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
Egenskapsvärde
Ett av ProcessModelComAuthenticationLevel värdena. Standardvärdet är Connect.
- Attribut
Exempel
Följande kodexempel visar hur du kommer åt egenskapen 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
Kommentarer
När det här egenskapsvärdet är inställt på Defaultbestämmer DCOM autentiseringsnivån med hjälp av sin normala algoritm för säkerhetsförhandling. Standardvärdet som tilldelats den här egenskapen, som anges i filen Machine.config, är Connect. I det här fallet autentiserar DCOM endast klientens autentiseringsuppgifter när klienten upprättar en relation med servern.