ServiceAuthorizationBehavior.ImpersonateCallerForAllOperations Propriedade

Definição

Obtém ou define um valor que indica se o serviço realiza a representação para todas as operações às quais ele dá suporte.Gets or sets a value that indicates whether the service performs impersonation for all the operations that it supports.

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

Valor da propriedade

Boolean

true Se o serviço executar a representação para todas as operações que ele suporta; caso contrário, false .true if the service performs impersonation for all the operations that it supports; otherwise, false. O padrão é false.The default is false.

Exceções

O comportamento é somente leitura.Behavior is read-only.

Exemplos

Este código mostra como definir essa propriedade.This code shows how to set this property.

// 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

Comentários

Um valor false indica que a representação é especificada para cada operação.A value of false indicates that impersonation is specified for each operation.

Aplica-se a