Export (0) Print
Expand All

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.

ValueMeaning
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 2003 R2

End of client support

Windows Vista

Namespace

\\.\Root\MicrosoftDfs

MOF

DfsRProvs.mof

See also

DfsrReplicatedFolderInfo

 

 

Show:
© 2014 Microsoft