TypeCatalog 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 TypeCatalog 类的新实例。
重载
TypeCatalog(IEnumerable<Type>) |
使用指定类型初始化 TypeCatalog 类的新实例。 |
TypeCatalog(Type[]) |
使用指定类型初始化 TypeCatalog 类的新实例。 |
TypeCatalog(IEnumerable<Type>, ICompositionElement) |
使用指定的类型和源部分初始化 TypeCatalog 类的新实例。 |
TypeCatalog(IEnumerable<Type>, ReflectionContext) |
通过使用指定相对反射上下文使用特定类型初始化 TypeCatalog 类的新实例。 |
TypeCatalog(IEnumerable<Type>, ReflectionContext, ICompositionElement) |
通过部分使用指定相对反射上下文和源使用特定类型初始化 TypeCatalog 类的新实例。 |
TypeCatalog(IEnumerable<Type>)
- Source:
- TypeCatalog.cs
- Source:
- TypeCatalog.cs
- Source:
- TypeCatalog.cs
使用指定类型初始化 TypeCatalog 类的新实例。
public:
TypeCatalog(System::Collections::Generic::IEnumerable<Type ^> ^ types);
public TypeCatalog (System.Collections.Generic.IEnumerable<Type> types);
new System.ComponentModel.Composition.Hosting.TypeCatalog : seq<Type> -> System.ComponentModel.Composition.Hosting.TypeCatalog
Public Sub New (types As IEnumerable(Of Type))
参数
- types
- IEnumerable<Type>
要添加到 Type 对象中的特性化 TypeCatalog 对象的集合。
例外
types
为 null
。
适用于
TypeCatalog(Type[])
- Source:
- TypeCatalog.cs
- Source:
- TypeCatalog.cs
- Source:
- TypeCatalog.cs
使用指定类型初始化 TypeCatalog 类的新实例。
public:
TypeCatalog(... cli::array <Type ^> ^ types);
public TypeCatalog (params Type[] types);
new System.ComponentModel.Composition.Hosting.TypeCatalog : Type[] -> System.ComponentModel.Composition.Hosting.TypeCatalog
Public Sub New (ParamArray types As Type())
参数
- types
- Type[]
要添加到 Type 对象中的特性化 TypeCatalog 对象的数组。
例外
types
为 null
。
适用于
TypeCatalog(IEnumerable<Type>, ICompositionElement)
- Source:
- TypeCatalog.cs
- Source:
- TypeCatalog.cs
- Source:
- TypeCatalog.cs
使用指定的类型和源部分初始化 TypeCatalog 类的新实例。
public:
TypeCatalog(System::Collections::Generic::IEnumerable<Type ^> ^ types, System::ComponentModel::Composition::Primitives::ICompositionElement ^ definitionOrigin);
public TypeCatalog (System.Collections.Generic.IEnumerable<Type> types, System.ComponentModel.Composition.Primitives.ICompositionElement definitionOrigin);
new System.ComponentModel.Composition.Hosting.TypeCatalog : seq<Type> * System.ComponentModel.Composition.Primitives.ICompositionElement -> System.ComponentModel.Composition.Hosting.TypeCatalog
Public Sub New (types As IEnumerable(Of Type), definitionOrigin As ICompositionElement)
参数
- types
- IEnumerable<Type>
要添加到 Type 对象中的特性化 TypeCatalog 对象的集合。
- definitionOrigin
- ICompositionElement
诊断用于标识部件源的一个元素。
例外
types
为 null
。
适用于
TypeCatalog(IEnumerable<Type>, ReflectionContext)
- Source:
- TypeCatalog.cs
- Source:
- TypeCatalog.cs
- Source:
- TypeCatalog.cs
通过使用指定相对反射上下文使用特定类型初始化 TypeCatalog 类的新实例。
public:
TypeCatalog(System::Collections::Generic::IEnumerable<Type ^> ^ types, System::Reflection::ReflectionContext ^ reflectionContext);
public TypeCatalog (System.Collections.Generic.IEnumerable<Type> types, System.Reflection.ReflectionContext reflectionContext);
new System.ComponentModel.Composition.Hosting.TypeCatalog : seq<Type> * System.Reflection.ReflectionContext -> System.ComponentModel.Composition.Hosting.TypeCatalog
Public Sub New (types As IEnumerable(Of Type), reflectionContext As ReflectionContext)
参数
- types
- IEnumerable<Type>
要添加到 Type 对象中的特性化 TypeCatalog 对象的集合。
- reflectionContext
- ReflectionContext
用于解释类型的上下文。
例外
types
为 null
。
适用于
TypeCatalog(IEnumerable<Type>, ReflectionContext, ICompositionElement)
- Source:
- TypeCatalog.cs
- Source:
- TypeCatalog.cs
- Source:
- TypeCatalog.cs
通过部分使用指定相对反射上下文和源使用特定类型初始化 TypeCatalog 类的新实例。
public:
TypeCatalog(System::Collections::Generic::IEnumerable<Type ^> ^ types, System::Reflection::ReflectionContext ^ reflectionContext, System::ComponentModel::Composition::Primitives::ICompositionElement ^ definitionOrigin);
public TypeCatalog (System.Collections.Generic.IEnumerable<Type> types, System.Reflection.ReflectionContext reflectionContext, System.ComponentModel.Composition.Primitives.ICompositionElement definitionOrigin);
new System.ComponentModel.Composition.Hosting.TypeCatalog : seq<Type> * System.Reflection.ReflectionContext * System.ComponentModel.Composition.Primitives.ICompositionElement -> System.ComponentModel.Composition.Hosting.TypeCatalog
Public Sub New (types As IEnumerable(Of Type), reflectionContext As ReflectionContext, definitionOrigin As ICompositionElement)
参数
- types
- IEnumerable<Type>
要添加到 Type 对象中的特性化 TypeCatalog 对象的集合。
- reflectionContext
- ReflectionContext
用于解释类型的上下文。
- definitionOrigin
- ICompositionElement
诊断用于标识部件源的一个元素。
例外
types
为 null
。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈