XmlReflectionImporter.IncludeType(Type) 方法

定义

包括用于稍后在调用导入方法时使用的类型的映射。

此 API 支持产品基础结构,不能在代码中直接使用。

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)

参数

type
Type

要保存类型映射信息的.NET类型。

属性

注解

不需要直接调用 IncludeType 该方法。

适用于