初始化 BuildContributorContext 类的新实例。
命名空间: Microsoft.Data.Schema.Build
程序集: Microsoft.Data.Schema(在 Microsoft.Data.Schema.dll 中)
语法
声明
Public Sub New ( _
buildProperties As Dictionary(Of String, Object), _
arguments As Dictionary(Of String, String), _
buildModel As DataSchemaModel, _
extensionFiles As ITaskItem() _
)
public BuildContributorContext(
Dictionary<string, Object> buildProperties,
Dictionary<string, string> arguments,
DataSchemaModel buildModel,
ITaskItem[] extensionFiles
)
public:
BuildContributorContext(
Dictionary<String^, Object^>^ buildProperties,
Dictionary<String^, String^>^ arguments,
DataSchemaModel^ buildModel,
array<ITaskItem^>^ extensionFiles
)
new :
buildProperties:Dictionary<string, Object> *
arguments:Dictionary<string, string> *
buildModel:DataSchemaModel *
extensionFiles:ITaskItem[] -> BuildContributorContext
public function BuildContributorContext(
buildProperties : Dictionary<String, Object>,
arguments : Dictionary<String, String>,
buildModel : DataSchemaModel,
extensionFiles : ITaskItem[]
)
参数
- buildProperties
类型:System.Collections.Generic.Dictionary<String, Object>
一个由命名属性值构成的 Dictionary。不能为 nullnull 引用(在 Visual Basic 中为 Nothing)。
- arguments
类型:System.Collections.Generic.Dictionary<String, String>
一个由命令行参数和值构成的 Dictionary。不能为 nullnull 引用(在 Visual Basic 中为 Nothing)。
- buildModel
类型:Microsoft.Data.Schema.SchemaModel.DataSchemaModel
对项目的 DataSchemaModel 的引用。不能为 nullnull 引用(在 Visual Basic 中为 Nothing)。
- extensionFiles
类型:array<Microsoft.Build.Framework.ITaskItem[]
ITaskItem 对象的数组。
异常
异常 | 条件 |
---|---|
ArgumentNullException | buildProperties 属性、arguments 属性或 buildModel 属性为 nullnull 引用(在 Visual Basic 中为 Nothing)。 |
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。