ApplicationAccessControlAttribute.ImpersonationLevel-Eigenschaft
Ruft die Ebene des Identitätswechsels ab, die für den Aufruf von Zielen dieser Anwendung zulässig ist, oder legt diese fest.
Namespace: System.EnterpriseServices
Assembly: System.EnterpriseServices (in system.enterpriseservices.dll)
Syntax
'Declaration
Public Property ImpersonationLevel As ImpersonationLevelOption
'Usage
Dim instance As ApplicationAccessControlAttribute
Dim value As ImpersonationLevelOption
value = instance.ImpersonationLevel
instance.ImpersonationLevel = value
public ImpersonationLevelOption ImpersonationLevel { get; set; }
public:
property ImpersonationLevelOption ImpersonationLevel {
ImpersonationLevelOption get ();
void set (ImpersonationLevelOption value);
}
/** @property */
public ImpersonationLevelOption get_ImpersonationLevel ()
/** @property */
public void set_ImpersonationLevel (ImpersonationLevelOption value)
public function get ImpersonationLevel () : ImpersonationLevelOption
public function set ImpersonationLevel (value : ImpersonationLevelOption)
Eigenschaftenwert
Einer der ImpersonationLevelOption-Werte.
Hinweise
Diese Eigenschaft wird nur unter Windows 2000 oder höher unterstützt.
Beispiel
Im folgenden Codebeispiel wird die Verwendung dieser Eigenschaft veranschaulicht.
' 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)];
// Set component access controls.
/** @assembly ApplicationAccessControl(Authentication =
AuthenticationOption.Privacy, ImpersonationLevel =
ImpersonationLevelOption.Identify, AccessChecksLevel =
AccessChecksLevelOption.ApplicationComponent)
*/
.NET Framework-Sicherheit
- Volle Vertrauenswürdigkeit für den unmittelbaren Aufrufer. Dieser Member kann von nur teilweise vertrauenswürdigem Code nicht verwendet werden. Weitere Informationen finden Sie unter .
Plattformen
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.
Versionsinformationen
.NET Framework
Unterstützt in: 2.0, 1.1, 1.0
Siehe auch
Referenz
ApplicationAccessControlAttribute-Klasse
ApplicationAccessControlAttribute-Member
System.EnterpriseServices-Namespace