IdentitySection.Impersonate Özellik
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
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 true
ayarlanı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 false
ayarlandığı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.