共用方式為


IFilterTrackingNotifyingChangeApplierTarget.GetFilterForgottenKnowledge 方法

在衍生類別中覆寫時,會取得複寫的指定篩選被遺忘知識。

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

語法

'宣告
Function GetFilterForgottenKnowledge ( _
    filterIndex As UInteger _
) As ForgottenKnowledge
'用途
Dim instance As IFilterTrackingNotifyingChangeApplierTarget
Dim filterIndex As UInteger
Dim returnValue As ForgottenKnowledge

returnValue = instance.GetFilterForgottenKnowledge(filterIndex)
ForgottenKnowledge GetFilterForgottenKnowledge (
    uint filterIndex
)
ForgottenKnowledge^ GetFilterForgottenKnowledge (
    unsigned int filterIndex
)
ForgottenKnowledge GetFilterForgottenKnowledge (
    UInt32 filterIndex
)
function GetFilterForgottenKnowledge (
    filterIndex : uint
) : ForgottenKnowledge

參數

  • filterIndex
    與要查閱之篩選被遺忘知識相關聯之篩選的篩選機碼。

傳回值

與 filterIndex 所識別之篩選相關聯的篩選被遺忘知識。當篩選被遺忘知識與複寫的被遺忘知識相同時,此值可為 null 參考 (在 Visual Basic 中為 Nothing)。

備註

當複寫所儲存的中繼資料會指出項目是否位於篩選中,以及項目是否原本位於篩選中但卻被移出時,複寫就會追蹤篩選。如果複寫已經移除追蹤項目是否原本位於篩選中但卻被移出的中繼資料,或者複寫沒有在第一次與篩選複寫同步處理時追蹤篩選,而是之後才開始追蹤篩選,此複寫可能也會包含篩選的篩選被遺忘知識。

範例

下列範例會使用 FilterKeyMap 物件擷取要求的篩選被遺忘知識。

Public Function GetFilterForgottenKnowledge(ByVal filterIndex As UInteger) As ForgottenKnowledge Implements IFilteredReplicaNotifyingChangeApplierTarget.GetFilterForgottenKnowledge
    If filterIndex < _filterKeyMap.Count Then
        Return DirectCast(_filterKeyMap(CInt(filterIndex)), AddressFilter).FilterForgottenKnowledge
    Else
        Throw New ArgumentOutOfRangeException("GetFilterForgottenKnowledge received and out-of-range index.")
    End If
End Function
public ForgottenKnowledge GetFilterForgottenKnowledge(uint filterIndex)
{
    if (filterIndex < _filterKeyMap.Count)
    {
        return ((AddressFilter)_filterKeyMap[(int)filterIndex]).FilterForgottenKnowledge;
    }
    else
    {
        throw new ArgumentOutOfRangeException("GetFilterForgottenKnowledge received and out-of-range index.");
    }
}

請參閱

參考

IFilterTrackingNotifyingChangeApplierTarget 介面
IFilterTrackingNotifyingChangeApplierTarget 成員
Microsoft.Synchronization 命名空間