System.Runtime.ConstrainedExecution 命名空间
定义一组类型,这些类型枚举和定义某些代码的作者和依赖于这些代码的开发人员之间的可靠性协定。 Defines a set of types that enumerate and define a contract for reliability between the author of some code, and the developers who take a dependency on that code. System.Runtime.ConstrainedExecution 命名空间中的类型仅用于受约束执行区域 (CER)。 The types in the System.Runtime.ConstrainedExecution namespace are intended for use in constrained execution regions (CERs).
类
| CriticalFinalizerObject |
确保派生类中的所有终止代码均标记为关键。Ensures that all finalization code in derived classes is marked as critical. |
| PrePrepareMethodAttribute |
指示本机图像生成服务准备一个要包含在受约束的执行区域 (CER) 中的方法。Instructs the native image generation service to prepare a method for inclusion in a constrained execution region (CER). |
| ReliabilityContractAttribute |
定义某些代码的作者和依赖于这些代码的开发人员之间的可靠性协定。Defines a contract for reliability between the author of some code, and the developers who have a dependency on that code. |
枚举
| Cer |
在受约束的执行区域内调用时指定方法的行为。Specifies a method's behavior when called within a constrained execution region. |
| Consistency |
指定可靠性协定。Specifies a reliability contract. |