Aracılığıyla paylaş


ProcessModelSection.ComImpersonationLevel Özellik

Tanım

COM güvenliği için kimlik doğrulama düzeyini gösteren bir değer alır veya ayarlar.

public:
 property System::Web::Configuration::ProcessModelComImpersonationLevel ComImpersonationLevel { System::Web::Configuration::ProcessModelComImpersonationLevel get(); void set(System::Web::Configuration::ProcessModelComImpersonationLevel value); };
[System.Configuration.ConfigurationProperty("comImpersonationLevel", DefaultValue=System.Web.Configuration.ProcessModelComImpersonationLevel.Impersonate)]
public System.Web.Configuration.ProcessModelComImpersonationLevel ComImpersonationLevel { get; set; }
[<System.Configuration.ConfigurationProperty("comImpersonationLevel", DefaultValue=System.Web.Configuration.ProcessModelComImpersonationLevel.Impersonate)>]
member this.ComImpersonationLevel : System.Web.Configuration.ProcessModelComImpersonationLevel with get, set
Public Property ComImpersonationLevel As ProcessModelComImpersonationLevel

Özellik Değeri

Değerlerden ProcessModelComImpersonationLevel biri. Varsayılan değer Impersonate değeridir.

Öznitelikler

Örnekler

Aşağıdaki kod örneği özelliğine nasıl eriş yapılacağını ComImpersonationLevel gösterir.


// Get the current ComImpersonationLevel property value.
ProcessModelComImpersonationLevel comImpLevel = 
    processModelSection.ComImpersonationLevel;

// Set the ComImpersonationLevel property to
// ProcessModelComImpersonationLevel.Anonymous.
processModelSection.ComImpersonationLevel = 
    ProcessModelComImpersonationLevel.Anonymous;
' Get the current ComImpersonationLevel property value.
   Dim comImpLevel _
   As ProcessModelComImpersonationLevel = _
   processModelSection.ComImpersonationLevel

' Set the ComImpersonationLevel property to
' ProcessModelComImpersonationLevel.Anonymous.
   processModelSection.ComImpersonationLevel = _
   ProcessModelComImpersonationLevel.Anonymous

Açıklamalar

Bu özellik değeri olarak Defaultayarlandığında DCOM, normal güvenlik anlaşması algoritmasını kullanarak kimliğe bürünme düzeyini belirler. Machine.config dosyasında belirtildiği gibi bu özelliğe atanan varsayılan değer olur Impersonate. Bu durumda, sunucu işlemi istemci adına hareket ederken istemcinin güvenlik bağlamının kimliğine bürünebilir.

Şunlara uygulanır