Share via


ServiceAuthorizationBehavior.ImpersonateCallerForAllOperations Eigenschaft

Definition

Ruft einen Wert ab, der angibt, ob der Dienst einen Identitätswechsel für alle Vorgänge, die er unterstützt, durchführt.

public:
 property bool ImpersonateCallerForAllOperations { bool get(); void set(bool value); };
public bool ImpersonateCallerForAllOperations { get; set; }
member this.ImpersonateCallerForAllOperations : bool with get, set
Public Property ImpersonateCallerForAllOperations As Boolean

Eigenschaftswert

Boolean

true, wenn der Dienst einen Identitätswechsel für alle unterstützten Vorgänge durchführt, andernfalls false. Der Standardwert ist false.

Ausnahmen

Das Verhalten ist schreibgeschützt.

Beispiele

Dieser Code zeigt, wie diese Eigenschaft festgelegt wird.

// Code to create a ServiceHost not shown.
ServiceAuthorizationBehavior MyServiceAuthoriationBehavior =
    serviceHost.Description.Behaviors.Find<ServiceAuthorizationBehavior>();
MyServiceAuthoriationBehavior.ImpersonateCallerForAllOperations = true;
' Code to create a ServiceHost not shown.
Dim MyServiceAuthoriationBehavior As ServiceAuthorizationBehavior 
MyServiceAuthoriationBehavior= serviceHost.Description.Behaviors.Find _
(Of ServiceAuthorizationBehavior)()
MyServiceAuthoriationBehavior.ImpersonateCallerForAllOperations = True

Hinweise

Der Wert false gibt an, dass Identitätswechsel für jeden Vorgang festgelegt ist.

Gilt für