XmlReflectionImporter.IncludeTypes(ICustomAttributeProvider) 方法

定义

包括派生类型的映射,供稍后在调用导入方法时使用。

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

public:
 void IncludeTypes(System::Reflection::ICustomAttributeProvider ^ provider);
[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 IncludeTypes(System.Reflection.ICustomAttributeProvider provider);
public void IncludeTypes(System.Reflection.ICustomAttributeProvider provider);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")]
public void IncludeTypes(System.Reflection.ICustomAttributeProvider provider);
[<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.IncludeTypes : System.Reflection.ICustomAttributeProvider -> unit
member this.IncludeTypes : System.Reflection.ICustomAttributeProvider -> unit
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Members from serialized types may be trimmed if not referenced directly")>]
member this.IncludeTypes : System.Reflection.ICustomAttributeProvider -> unit
Public Sub IncludeTypes (provider As ICustomAttributeProvider)

参数

provider
ICustomAttributeProvider

类的 ICustomAttributeProvider 实例,该类包含派生自该特性的 XmlIncludeAttribute 自定义属性。

属性

适用于