XmlReflectionImporter.IncludeTypes(ICustomAttributeProvider) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
包括派生类型的映射,供稍后在调用导入方法时使用。
此 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 自定义属性。
- 属性