共用方式為


DefaultCompatibilityLevel 屬性

取得或設定所有 SyncKnowledge 物件的預設相容性層級。

命名空間:  Microsoft.Synchronization
組件:  Microsoft.Synchronization (在 Microsoft.Synchronization.dll 中)

語法

'宣告
Public Shared Property DefaultCompatibilityLevel As CompatibilityLevel
    Get
    Set
'用途
Dim value As CompatibilityLevel

value = SyncKnowledge.DefaultCompatibilityLevel

SyncKnowledge.DefaultCompatibilityLevel = value
public static CompatibilityLevel DefaultCompatibilityLevel { get; set; }
public:
static property CompatibilityLevel DefaultCompatibilityLevel {
    CompatibilityLevel get ();
    void set (CompatibilityLevel value);
}
static member DefaultCompatibilityLevel : CompatibilityLevel with get, set
static function get DefaultCompatibilityLevel () : CompatibilityLevel
static function set DefaultCompatibilityLevel (value : CompatibilityLevel)

屬性值

型別:Microsoft.Synchronization. . :: . .CompatibilityLevel
所有 SyncKnowledge 物件的預設相容性層級。

例外

例外狀況 條件
ArgumentOutOfRangeException

要設定的值不是 CompatibilityLevel 列舉的成員。

備註

DefaultCompatibilityLevel 的值是用來初始化新 SyncKnowledge 物件的 CompatibilityLevel 屬性。預設值為 SyncFrameworkVersion2

請參閱

參考

SyncKnowledge類別

SyncKnowledge 成員

Microsoft.Synchronization 命名空間