Share via


FilterKeyMap.AddFilter Method

Adds a filter to the map.

Namespace:  Microsoft.Synchronization
Assembly:  Microsoft.Synchronization (in Microsoft.Synchronization.dll)

Syntax

'Declaration
Public Function AddFilter ( _
    syncFilter As ISyncFilter _
) As UInteger
'Usage
Dim instance As FilterKeyMap
Dim syncFilter As ISyncFilter
Dim returnValue As UInteger

returnValue = instance.AddFilter(syncFilter)
public uint AddFilter(
    ISyncFilter syncFilter
)
public:
unsigned int AddFilter(
    ISyncFilter^ syncFilter
)
member AddFilter : 
        syncFilter:ISyncFilter -> uint32 
public function AddFilter(
    syncFilter : ISyncFilter
) : uint

Parameters

Return Value

Type: System.UInt32
The filter key of the newly added filter.

Remarks

When a new filter is added to the filter key map, the map automatically allocates more memory and resizes itself, if it is necessary.

See Also

Reference

FilterKeyMap Class

Microsoft.Synchronization Namespace