Partager via


Fence method of the MSFT_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
None supported
Minimum supported server
Windows Server 2012 R2
Namespace
Root\Microsoft\Windows\Dfsr
MOF
Dfsrwmiv2.mof
DLL
DfsRWmiV2.dll

See also

MSFT_DfsrReplicatedFolderInfo