[]
Indicates that the specified method requires the ability to generate new code at runtime, for example through System.Reflection.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Constructor|AttributeTargets.Method, Inherited = false)]
public sealed class RequiresDynamicCodeAttribute : Attribute
<AttributeUsage(AttributeTargets.ClassOrAttributeTargets.ConstructorOrAttributeTargets.Method, Inherited:=False)>
Public NotInheritable Class RequiresDynamicCodeAttribute
Inherits Attribute
| Name | Description |
|---|---|
| RequiresDynamicCodeAttribute(string) | Initializes a new instance of the System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute class with the specified message. |
| Name | Description |
|---|---|
| Message | Gets a message that contains information about the usage of dynamic code. |
| Url | Gets or sets an optional URL that contains more information about the method, why it requires dynamic code, and what options a consumer has to deal with it. |