Share via


Fence method of the DfsrReplicatedFolderInfo class

Applies a fence to a specific file or directory.

Syntax

uint32 Fence(
  [in] uint8   Mode,
  [in] string  FilePath,
  [in] boolean IsRecursive
);

Parameters

Mode [in]

Fencing mode. This parameter can be one of the following values.

Unfence (0)

This file or folder will lose all conflicts.

Initial Sync (1)

Initial fence value for non-primary member.

Initial Primary (2)

Initial fence value for primary member.

Default (3)

Default fencing value.

Fence (4)

Fence with current time stamp.

FilePath [in]

The full path to the fence.

IsRecursive [in]

Indicates whether to apply the fence recursively to all children.

Return value

This method returns one of the MONITOR_STATUS return codes or one of the system error codes.

Requirements

Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
End of client support
Windows Vista
Namespace
Root\MicrosoftDfs
MOF
DfsRProvs.mof
DLL
DfsRWmiV2.dll

See also

DfsrReplicatedFolderInfo