System.Runtime.ConstrainedExecution.PrePrepareMethodAttribute Class

Instructs the native image generation service to prepare a method for inclusion in a constrained execution region (CER).

See Also: PrePrepareMethodAttribute Members

Syntax

[System.AttributeUsage(System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.All, Inherited=false)]
public sealed class PrePrepareMethodAttribute : Attribute

Remarks

Apply the System.Runtime.ConstrainedExecution.PrePrepareMethodAttribute attribute to a method or constructor to tell the native image generation service that the method (and its statically determinable call graph) is to be prepared for use in a CER. This attribute is useful if the method to which it is applied will be prepared explicitly at run time, and the author of the method knows this and wants to avoid the overhead of run-time preparation.

Requirements

Namespace: System.Runtime.ConstrainedExecution
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0