ImportContext(CodeIdentifiers, Boolean) 构造函数

定义

使用给定的类型共享选项初始化给定代码标识符类的新实例 ImportContext

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

public:
 ImportContext(System::Xml::Serialization::CodeIdentifiers ^ identifiers, bool shareTypes);
public ImportContext(System.Xml.Serialization.CodeIdentifiers? identifiers, bool shareTypes);
public ImportContext(System.Xml.Serialization.CodeIdentifiers identifiers, bool shareTypes);
new System.Xml.Serialization.ImportContext : System.Xml.Serialization.CodeIdentifiers * bool -> System.Xml.Serialization.ImportContext
Public Sub New (identifiers As CodeIdentifiers, shareTypes As Boolean)

参数

identifiers
CodeIdentifiers

上下文应用到的代码实体。

shareTypes
Boolean

一个 Boolean 值,该值确定自定义类型是否在架构之间共享。

适用于