比较两个脚本。
命名空间: Microsoft.Data.Schema.ScriptDom.Sql
程序集: Microsoft.Data.Schema.Sql(在 Microsoft.Data.Schema.Sql.dll 中)
语法
声明
Public Function Compare ( _
firstScript As String, _
secondScript As String _
) As Boolean
public bool Compare(
string firstScript,
string secondScript
)
public:
bool Compare(
String^ firstScript,
String^ secondScript
)
member Compare :
firstScript:string *
secondScript:string -> bool
public function Compare(
firstScript : String,
secondScript : String
) : boolean
参数
- firstScript
类型:System.String
要比较的第一个完整脚本。
- secondScript
类型:System.String
要比较的第二个完整脚本。
返回值
类型:System.Boolean
如果两个脚本在功能上等效,则为 true;否则为 false。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。