Aracılığıyla paylaş


IdentitySection.Impersonate Özellik

Tanım

her istekte istemci kimliğe bürünme özelliğinin kullanılıp kullanılmadığını belirten bir değer alır veya ayarlar.

public:
 property bool Impersonate { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("impersonate", DefaultValue=false)]
public bool Impersonate { get; set; }
[<System.Configuration.ConfigurationProperty("impersonate", DefaultValue=false)>]
member this.Impersonate : bool with get, set
Public Property Impersonate As Boolean

Özellik Değeri

true istemci kimliğe bürünme kullanılıyorsa; aksi takdirde , false. false varsayılan değerdir.

Öznitelikler

Örnekler

Aşağıdaki kod örneği özelliğine nasıl erişeceklerini Impersonate gösterir. Bölümüne nasıl erişeceğinizi öğrenmek için sınıfın IdentitySection kod örneğine bakın.

// Get the Impersonate property value.
bool currentImpersonate = identitySection.Impersonate;

// Set the Impersonate property to true.
identitySection.Impersonate = true;
' Get the Impersonate property value.
Dim currentImpersonate As Boolean = identitySection.Impersonate

' Set the Impersonate property to true.
identitySection.Impersonate = True

Açıklamalar

Impersonate özelliği olarak trueayarlanırsa her istek, istemcisinin kimliğine bürünen bir Web uygulaması tarafından sunulur. Yani, şu anda oturum açmış olan kullanıcı veya ve Password özellikleri tarafından UserName belirtilen kullanıcı. Impersonate özelliği olarak falseayarlandığında, uygulama herhangi bir istemci kullanıcısının kimliğine bürünmüyor.

Not

Güvenlik nedeniyle, kimlik bölümü şifrelenmiş UserName ve Passwordöğelerinin depolanmasını destekler.

Şunlara uygulanır

Ayrıca bkz.