ModelTranslatorDefinition 构造函数
使用提供的 ModelSchema 对象初始化 ModelTranslatorDefinition 类的新实例。
命名空间: Microsoft.Data.Schema.SchemaModel.Translation
程序集: Microsoft.Data.Schema(在 Microsoft.Data.Schema.dll 中)
语法
声明
Public Sub New ( _
from As ModelSchema, _
to As ModelSchema _
)
public ModelTranslatorDefinition(
ModelSchema from,
ModelSchema to
)
public:
ModelTranslatorDefinition(
ModelSchema^ from,
ModelSchema^ to
)
new :
from:ModelSchema *
to:ModelSchema -> ModelTranslatorDefinition
public function ModelTranslatorDefinition(
from : ModelSchema,
to : ModelSchema
)
参数
- from
类型:Microsoft.Data.Schema.SchemaModel.ModelSchema
源 ModelSchema 对象。
- to
类型:Microsoft.Data.Schema.SchemaModel.ModelSchema
目标 ModelSchema 对象。
异常
异常 | 条件 |
---|---|
ArgumentNullException | 其中一个或全部两个参数为 nullnull 引用(在 Visual Basic 中为 Nothing)。 |
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。