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


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


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.


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