Share via


SyncKnowledge.ExcludeItem Method

Removes knowledge about the specified item from the knowledge.

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

Syntax

'Declaration
Public Sub ExcludeItem ( _
    itemId As SyncId _
)
'Usage
Dim instance As SyncKnowledge
Dim itemId As SyncId

instance.ExcludeItem(itemId)
public void ExcludeItem(
    SyncId itemId
)
public:
void ExcludeItem(
    SyncId^ itemId
)
member ExcludeItem : 
        itemId:SyncId -> unit 
public function ExcludeItem(
    itemId : SyncId
)

Parameters

Exceptions

Exception Condition
InvalidOperationException

This SyncKnowledge object is not initialized.

ArgumentNullException

itemId is a null reference (Nothing in Visual Basic).

SyncIdFormatMismatchException

itemId is not in the ID format specified for this knowledge object or has a different variable length setting.

See Also

Reference

SyncKnowledge Class

Microsoft.Synchronization Namespace