ImportContext 类
定义
描述特定上下文,架构集在该上下文中绑定到 .NET 代码实体。Describes the context in which a set of schema is bound to .NET code entities.
此 API 支持产品基础结构,不能在代码中直接使用。
public ref class ImportContext
public class ImportContext
type ImportContext = class
Public Class ImportContext
- 继承
-
ImportContext
构造函数
| ImportContext(CodeIdentifiers, Boolean) |
此 API 支持产品基础结构,不能在代码中直接使用。 使用给定的类型共享选项,初始化给定代码标识符的 ImportContext 类的新实例。Initializes a new instance of the ImportContext class for the given code identifiers, with the given type-sharing option. |
属性
| ShareTypes |
此 API 支持产品基础结构,不能在代码中直接使用。 获取一个值,该值确定自定义类型是否共享。Gets a value that determines whether custom types are shared. |
| TypeIdentifiers |
此 API 支持产品基础结构,不能在代码中直接使用。 获取应用上下文的代码实体集。Gets a set of code entities to which the context applies. |
| Warnings |
此 API 支持产品基础结构,不能在代码中直接使用。 获取在导入代码实体说明时生成的警告集合。Gets a collection of warnings that are generated when importing the code entity descriptions. |
方法
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |