ServiceAuthorizationBehavior.ImpersonateCallerForAllOperations Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient ou définit une valeur qui indique si le service effectue l’emprunt d’identité pour toutes les opérations qu’il prend en charge.
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
Valeur de propriété
true si le service effectue l’emprunt d’identité pour toutes les opérations qu’il prend en charge ; sinon, false. La valeur par défaut est false.
Exceptions
Le comportement est en lecture seule.
Exemples
Ce code montre comment définir cette propriété.
// 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
Remarques
Une valeur indiquant false que l’emprunt d’identité est spécifié pour chaque opération.