共用方式為


ModelComparerConfiguration.OnlyCompareElementsInSource 屬性

取得或設定值,這個值表示是否只比較出現在來源中的項目。

命名空間:  Microsoft.Data.Schema.SchemaModel
組件:  Microsoft.Data.Schema (在 Microsoft.Data.Schema.dll 中)

語法

'宣告
Public Property OnlyCompareElementsInSource As Boolean
    Get
    Set
public bool OnlyCompareElementsInSource { get; set; }
public:
property bool OnlyCompareElementsInSource {
    bool get ();
    void set (bool value);
}
member OnlyCompareElementsInSource : bool with get, set
function get OnlyCompareElementsInSource () : boolean
function set OnlyCompareElementsInSource (value : boolean)

屬性值

型別:System.Boolean

備註

如果項目不在來源卻在目標中,便會在比較期間忽略它們,而且不會將它們新增至 Drop List。

.NET Framework 安全性

請參閱

參考

ModelComparerConfiguration 類別

Microsoft.Data.Schema.SchemaModel 命名空間