Udostępnij za pośrednictwem


System.Security namespaces

The System.Security and System.Security.Principal namespaces contain classes that represent the .NET Framework security system and permissions.

This topic displays the types in the System.Security and System.Security.Principal namespaces that are included in the .NET for Windows Store apps. Note that the .NET for Windows Store apps does not include all the members of each type. For information about individual types, see the linked topics. The documentation for a type indicates which members are included in the .NET for Windows Store apps.

System.Security namespace

Types supported in the .NET for Windows Store apps

Description

AllowPartiallyTrustedCallersAttribute

Allows an assembly to be called by partially trusted code. Without this declaration, only fully trusted callers are able to use the assembly. This class cannot be inherited.

SecurityCriticalAttribute

Specifies that code or an assembly performs security-critical operations.

SecurityException

The exception that is thrown when a security error is detected.

SecuritySafeCriticalAttribute

Identifies types or members as security-critical and safely accessible by transparent code.

SecurityTransparentAttribute

Specifies that an assembly cannot cause an elevation of privilege.

VerificationException

The exception that is thrown when the security policy requires code to be type safe and the verification process is unable to verify that the code is type safe.

System.Security.Principal namespace

Types supported in the .NET for Windows Store apps

Description

IIdentity

Defines the basic functionality of an identity object.

IPrincipal

Defines the basic functionality of a principal object.

TokenImpersonationLevel

Defines security impersonation levels. Security impersonation levels govern the degree to which a server process can act on behalf of a client process.

See Also

Concepts

.NET for Windows Store apps APIs