SchemaCompareComparisonGenerator.VerifyCompatibilityAndPopulateExtensions 方法
判斷指定的模型提供者是否互相相容,以及是否與指定的資料庫結構描述提供者相容。
命名空間: Microsoft.VisualStudio.Data.Schema.Package.SchemaCompare
組件: Microsoft.VisualStudio.Data.Schema.Package (在 Microsoft.VisualStudio.Data.Schema.Package.dll 中)
語法
'宣告
Public Shared Function VerifyCompatibilityAndPopulateExtensions ( _
modelProvider1 As ISchemaCompareModelProvider, _
modelProvider2 As ISchemaCompareModelProvider, _
populateServices As Boolean, _
<OutAttribute> ByRef dsp As DatabaseSchemaProvider, _
<OutAttribute> ByRef scriptingService As SchemaCompareScriptService, _
<OutAttribute> ByRef settingsService As SchemaCompareSettingsService, _
<OutAttribute> ByRef modelInformation As SchemaCompareModelInformation, _
<OutAttribute> ByRef errorMessage As String _
) As Boolean
public static bool VerifyCompatibilityAndPopulateExtensions(
ISchemaCompareModelProvider modelProvider1,
ISchemaCompareModelProvider modelProvider2,
bool populateServices,
out DatabaseSchemaProvider dsp,
out SchemaCompareScriptService scriptingService,
out SchemaCompareSettingsService settingsService,
out SchemaCompareModelInformation modelInformation,
out string errorMessage
)
public:
static bool VerifyCompatibilityAndPopulateExtensions(
ISchemaCompareModelProvider^ modelProvider1,
ISchemaCompareModelProvider^ modelProvider2,
bool populateServices,
[OutAttribute] DatabaseSchemaProvider^% dsp,
[OutAttribute] SchemaCompareScriptService^% scriptingService,
[OutAttribute] SchemaCompareSettingsService^% settingsService,
[OutAttribute] SchemaCompareModelInformation^% modelInformation,
[OutAttribute] String^% errorMessage
)
static member VerifyCompatibilityAndPopulateExtensions :
modelProvider1:ISchemaCompareModelProvider *
modelProvider2:ISchemaCompareModelProvider *
populateServices:bool *
dsp:DatabaseSchemaProvider byref *
scriptingService:SchemaCompareScriptService byref *
settingsService:SchemaCompareSettingsService byref *
modelInformation:SchemaCompareModelInformation byref *
errorMessage:string byref -> bool
public static function VerifyCompatibilityAndPopulateExtensions(
modelProvider1 : ISchemaCompareModelProvider,
modelProvider2 : ISchemaCompareModelProvider,
populateServices : boolean,
dsp : DatabaseSchemaProvider,
scriptingService : SchemaCompareScriptService,
settingsService : SchemaCompareSettingsService,
modelInformation : SchemaCompareModelInformation,
errorMessage : String
) : boolean
參數
- modelProvider1
型別:Microsoft.Data.Schema.Tools.Compare.Schema.ISchemaCompareModelProvider
- modelProvider2
型別:Microsoft.Data.Schema.Tools.Compare.Schema.ISchemaCompareModelProvider
- populateServices
型別:System.Boolean
- scriptingService
型別:Microsoft.Data.Schema.Tools.Compare.Schema.SchemaCompareScriptService%
- settingsService
型別:Microsoft.Data.Schema.Tools.Compare.Schema.SchemaCompareSettingsService%
- modelInformation
型別:Microsoft.Data.Schema.Tools.Compare.Schema.SchemaCompareModelInformation%
- errorMessage
型別:System.String%
傳回值
備註
如果提供者和資料庫結構描述提供者相容,這個方法將會設定 SchemaCompareSettingsService 和 SchemaCompareScriptService 擴充。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。
請參閱
參考
SchemaCompareComparisonGenerator 類別
Microsoft.VisualStudio.Data.Schema.Package.SchemaCompare 命名空間