SecurityManager Class

Provides the main access point for classes interacting with the security system. This class cannot be inherited.

System.Object
  System.Security.SecurityManager

Namespace:  System.Security
Assembly:  mscorlib (in mscorlib.dll)

[ComVisibleAttribute(true)]
public static class SecurityManager

The SecurityManager type exposes the following members.

  NameDescription
Public propertyStatic memberCheckExecutionRightsInfrastructure. Obsolete. Gets or sets a value indicating whether code must have Execution in order to execute.
Public propertyStatic memberSecurityEnabled Obsolete. Gets or sets a value indicating whether security is enabled.
Top

  NameDescription
Public methodStatic memberCurrentThreadRequiresSecurityContextCaptureDetermines whether the current thread requires a security context capture if its security state has to be re-created at a later point in time.
Public methodStatic memberGetStandardSandboxGets a permission set that is safe to grant to an application that has the provided evidence.
Public methodStatic memberGetZoneAndOriginInfrastructure. Gets the granted zone identity and URL identity permission sets for the current assembly.
Public methodStatic memberIsGranted Obsolete. Determines whether a permission is granted to the caller.
Public methodStatic memberLoadPolicyLevelFromFile Obsolete. Loads a PolicyLevel from the specified file.
Public methodStatic memberLoadPolicyLevelFromString Obsolete. Loads a PolicyLevel from the specified string.
Public methodStatic memberPolicyHierarchy Obsolete. Provides an enumerator to access the security policy hierarchy by levels, such as computer policy and user policy.
Public methodStatic memberResolvePolicy(Evidence) Obsolete. Determines what permissions to grant to code based on the specified evidence.
Public methodStatic memberResolvePolicy(Evidence[]) Obsolete. Determines what permissions to grant to code based on the specified evidence.
Public methodStatic memberResolvePolicy(Evidence, PermissionSet, PermissionSet, PermissionSet, PermissionSet) Obsolete. Determines what permissions to grant to code based on the specified evidence and requests.
Public methodStatic memberResolvePolicyGroups Obsolete. Gets a collection of code groups matching the specified evidence.
Public methodStatic memberResolveSystemPolicy Obsolete. Determines which permissions to grant to code based on the specified evidence, excluding the policy for the AppDomain level.
Public methodStatic memberSavePolicy Obsolete. Saves the modified security policy state.
Public methodStatic memberSavePolicyLevel Obsolete. Saves a modified security policy level loaded with LoadPolicyLevelFromFile.
Top

Security provides methods to access and manipulate the security policy configuration. You cannot create instances of SecurityManager.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft