Runtime Directive Elements

The runtime directives (rd.xml) file format supports the following runtime directive elements. See Runtime Directives (rd.xml) Configuration File Reference for a hierarchical representation.

<Application>
Applies runtime reflection policy to all types used by the app, and serves as a container for application-wide types and type members whose metadata is available for reflection at run time. This is a child of the <Directives> element.

<Assembly>
Applies runtime policy to all the types in an assembly. This is a child of the <Application> and <Library> elements.

<AttributeImplies>
If its containing <Type> directive is an attribute, applies runtime policy to code elements to which that attribute is applied.

<Directives>
The root element in every runtime directives file for .NET Native. Its child elements are <Application> and <Library>.

<Event>
Applies runtime policy to an event. This is a child of the <Type> and <TypeInstantiation> elements.

<Field>
Applies runtime policy to a field. This is a child of the <Type> and <TypeInstantiation> elements.

<GenericParameter>
Applies runtime policy to the parameter type of a generic type or method.

<ImpliesType>
Applies runtime policy to a type, if that policy has been applied to the containing type or method.

<Library>
Applies runtime policy to all the types in an assembly. This is a child of the <Application> and <Library> elements.

<Method>
Applies runtime policy to a method. This is a child of the <Type> and <TypeInstantiation> elements.

<MethodInstantiation>
Applies runtime policy to a constructed generic method. This is a child of the <Type> and <TypeInstantiation> elements.

<Namespace>
Applies runtime policy to all the types in a namespace.

<Parameter>
Applies runtime policy to the type of the argument passed to a method.

<Property>
Applies runtime policy to a property. This is a child of the <Type> and <TypeInstantiation> elements.

<Subtypes>
Applies runtime policy to all classes inherited from the containing type.

<Type>
Applies runtime policy to a type.

<TypeInstantiation>
Applies runtime policy to a constructed generic type.

<TypeParameter>
Applies runtime policy to the type represented by a Type argument passed to a method.

See also