创建两个片断之间的差异列表。
命名空间: Microsoft.Data.Schema.ScriptDom.Sql
程序集: Microsoft.Data.Schema.Sql(在 Microsoft.Data.Schema.Sql.dll 中)
语法
声明
Public Function GetDifferences ( _
oldScript As TSqlFragment, _
newScript As TSqlFragment _
) As IList(Of SqlScriptComparisonResult)
public IList<SqlScriptComparisonResult> GetDifferences(
TSqlFragment oldScript,
TSqlFragment newScript
)
public:
IList<SqlScriptComparisonResult^>^ GetDifferences(
TSqlFragment^ oldScript,
TSqlFragment^ newScript
)
member GetDifferences :
oldScript:TSqlFragment *
newScript:TSqlFragment -> IList<SqlScriptComparisonResult>
public function GetDifferences(
oldScript : TSqlFragment,
newScript : TSqlFragment
) : IList<SqlScriptComparisonResult>
参数
- oldScript
类型:Microsoft.Data.Schema.ScriptDom.Sql.TSqlFragment
旧片断。
- newScript
类型:Microsoft.Data.Schema.ScriptDom.Sql.TSqlFragment
新片断。
返回值
类型:System.Collections.Generic.IList<SqlScriptComparisonResult>
两个片断之间的差异列表。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。