XmlReflectionImporter.IncludeType(Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Includes mappings for a type for later use when import methods are invoked.
This API supports the product infrastructure and is not intended to be used directly from your code.
public:
void IncludeType(Type ^ type);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("XML serializer relies on dynamic code generation which is not available with Ahead of Time compilation")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")]
public void IncludeType(Type type);
public void IncludeType(Type type);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")]
public void IncludeType(Type type);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("XML serializer relies on dynamic code generation which is not available with Ahead of Time compilation")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")>]
member this.IncludeType : Type -> unit
member this.IncludeType : Type -> unit
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")>]
member this.IncludeType : Type -> unit
Public Sub IncludeType (type As Type)
Parameters
- type
- Type
The .NET type for which to save type mapping information.
- Attributes
Remarks
It is not necessary to call the IncludeType method directly.