在应用配置时调用。 在使用 Microsoft.Build.Evaluation.Project 时,此方法允许派生类为自定义的 DatabaseSchemaProvider 进行额外处理。
命名空间: Microsoft.Data.Schema.Build
程序集: Microsoft.Data.Schema(在 Microsoft.Data.Schema.dll 中)
语法
声明
Protected Overridable Function OnConfigure ( _
manifest As Project, _
fileLocation As DirectoryInfo _
) As IList(Of DataSchemaError)
protected virtual IList<DataSchemaError> OnConfigure(
Project manifest,
DirectoryInfo fileLocation
)
protected:
virtual IList<DataSchemaError^>^ OnConfigure(
Project^ manifest,
DirectoryInfo^ fileLocation
)
abstract OnConfigure :
manifest:Project *
fileLocation:DirectoryInfo -> IList<DataSchemaError>
override OnConfigure :
manifest:Project *
fileLocation:DirectoryInfo -> IList<DataSchemaError>
protected function OnConfigure(
manifest : Project,
fileLocation : DirectoryInfo
) : IList<DataSchemaError>
参数
- manifest
类型:Microsoft.Build.Evaluation.Project
一个 Microsoft.Build.Evaluation.Project 对象。
- fileLocation
类型:System.IO.DirectoryInfo
一个用于标识文件位置的 System.IO.DirectoryInfo 对象。
返回值
类型:System.Collections.Generic.IList<DataSchemaError>
一个在应用配置时遇到的 DataSchemaError 对象的列表。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。