HostSecurityManager.ResolvePolicy(Evidence) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
This API is now deprecated.
Determines what permissions to grant to code based on the specified evidence.
public:
virtual System::Security::PermissionSet ^ ResolvePolicy(System::Security::Policy::Evidence ^ evidence);
[System.Obsolete]
public virtual System.Security.PermissionSet ResolvePolicy (System.Security.Policy.Evidence evidence);
public virtual System.Security.PermissionSet ResolvePolicy (System.Security.Policy.Evidence evidence);
[<System.Obsolete>]
abstract member ResolvePolicy : System.Security.Policy.Evidence -> System.Security.PermissionSet
override this.ResolvePolicy : System.Security.Policy.Evidence -> System.Security.PermissionSet
abstract member ResolvePolicy : System.Security.Policy.Evidence -> System.Security.PermissionSet
override this.ResolvePolicy : System.Security.Policy.Evidence -> System.Security.PermissionSet
Public Overridable Function ResolvePolicy (evidence As Evidence) As PermissionSet
Parameters
- evidence
- Evidence
The evidence set used to evaluate policy.
Returns
The permission set that can be granted by the security system.
- Attributes
Exceptions
evidence
is null
.
Remarks
This method invokes the security policy engine, providing it with the specified evidence. The result is determined by the security policy.
Applies to
Colaborați cu noi pe GitHub
Sursa pentru acest conținut poate fi găsită pe GitHub, unde puteți, de asemenea, să creați și să consultați probleme și solicitări de tragere. Pentru mai multe informații, consultați ghidul nostru pentru colaboratori.