共用方式為


ChangeBatchBase.SetFilterForgottenKnowledge 方法

設定指定之篩選的篩選被遺忘知識。

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

語法

'宣告
Public Sub SetFilterForgottenKnowledge ( _
    filterKey As UInteger, _
    filterForgottenKnowledge As SyncKnowledge _
)
'用途
Dim instance As ChangeBatchBase
Dim filterKey As UInteger
Dim filterForgottenKnowledge As SyncKnowledge

instance.SetFilterForgottenKnowledge(filterKey, filterForgottenKnowledge)
public void SetFilterForgottenKnowledge (
    uint filterKey,
    SyncKnowledge filterForgottenKnowledge
)
public:
void SetFilterForgottenKnowledge (
    unsigned int filterKey, 
    SyncKnowledge^ filterForgottenKnowledge
)
public void SetFilterForgottenKnowledge (
    UInt32 filterKey, 
    SyncKnowledge filterForgottenKnowledge
)
public function SetFilterForgottenKnowledge (
    filterKey : uint, 
    filterForgottenKnowledge : SyncKnowledge
)

參數

  • filterKey
    與 filterForgottenKnowledge 有關之篩選的篩選機碼。
  • filterForgottenKnowledge
    由 filterKey 所識別之篩選的篩選被遺忘知識。

例外

例外狀況型別 條件

ArgumentException

此變更批次沒有包含篩選機碼對應,或者 filterKey 是無效的值。

SyncInvalidOperationException

尚未在變更批次中啟動群組。當 filterKey 所指定的篩選已經設定篩選被遺忘知識時,也會擲回這個例外狀況。

備註

篩選被遺忘知識會套用至目前已開啟的群組。

請參閱

參考

ChangeBatchBase 類別
ChangeBatchBase 成員
Microsoft.Synchronization 命名空間