Compartilhar via


ApplicationAccessControlAttribute.ImpersonationLevel Propriedade

Definição

Obtém ou define o nível de representação que é permitido para chamar destinos desse aplicativo.

public:
 property System::EnterpriseServices::ImpersonationLevelOption ImpersonationLevel { System::EnterpriseServices::ImpersonationLevelOption get(); void set(System::EnterpriseServices::ImpersonationLevelOption value); };
public System.EnterpriseServices.ImpersonationLevelOption ImpersonationLevel { get; set; }
member this.ImpersonationLevel : System.EnterpriseServices.ImpersonationLevelOption with get, set
Public Property ImpersonationLevel As ImpersonationLevelOption

Valor da propriedade

Um dos valores de ImpersonationLevelOption.

Exemplos

O exemplo de código a seguir demonstra o uso dessa propriedade.

// Set component access controls.
[assembly:ApplicationAccessControl(Authentication=AuthenticationOption::Privacy,
ImpersonationLevel=ImpersonationLevelOption::Identify,
AccessChecksLevel=AccessChecksLevelOption::ApplicationComponent)];
// Set component access controls.
[assembly: ApplicationAccessControl(Authentication=AuthenticationOption.Privacy,
                                    ImpersonationLevel=ImpersonationLevelOption.Identify,
                                    AccessChecksLevel=AccessChecksLevelOption.ApplicationComponent)]
' Set component access controls.
<Assembly: ApplicationAccessControl(Authentication:=AuthenticationOption.Privacy, ImpersonationLevel:=ImpersonationLevelOption.Identify, AccessChecksLevel:=AccessChecksLevelOption.ApplicationComponent)>

Comentários

Essa propriedade tem suporte apenas no Windows 2000 e posterior.

Aplica-se a