SecurityManager.ResolvePolicyGroups(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.
Caution
This method is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.
Gets a collection of code groups matching the specified evidence.
public:
static System::Collections::IEnumerator ^ ResolvePolicyGroups(System::Security::Policy::Evidence ^ evidence);
[System.Obsolete]
public static System.Collections.IEnumerator ResolvePolicyGroups (System.Security.Policy.Evidence evidence);
public static System.Collections.IEnumerator ResolvePolicyGroups (System.Security.Policy.Evidence evidence);
[System.Obsolete("This method is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")]
public static System.Collections.IEnumerator ResolvePolicyGroups (System.Security.Policy.Evidence evidence);
[<System.Obsolete>]
static member ResolvePolicyGroups : System.Security.Policy.Evidence -> System.Collections.IEnumerator
static member ResolvePolicyGroups : System.Security.Policy.Evidence -> System.Collections.IEnumerator
[<System.Obsolete("This method is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")>]
static member ResolvePolicyGroups : System.Security.Policy.Evidence -> System.Collections.IEnumerator
Public Shared Function ResolvePolicyGroups (evidence As Evidence) As IEnumerator
Parameters
- evidence
- Evidence
The evidence set against which the policy is evaluated.
Returns
An enumeration of the set of code groups matching the evidence.
- Attributes
Exceptions
This method uses code access security (CAS) policy, which is obsolete in the .NET Framework 4. To enable CAS policy for compatibility with earlier versions of the .NET Framework, use the <legacyCasPolicy> element.
Remarks
This method is useful in analyzing how a specified policy configuration works with specific kinds of evidence.
Code groups will be returned from all applicable levels of the policy hierarchy matching the evidence
parameter.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應