1 out of 1 rated this helpful - Rate this topic

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 [desktop apps only]

Minimum supported server

Windows Server 2003 R2 [desktop apps only]

End of client support

Windows Vista

Namespace

\\.\Root\MicrosoftDfs

MOF

Dfsrprov.mof;
Dfsrprovs.mof on Windows Server 2008 R2 and Windows Server 2008

See also

DfsrReplicatedFolderInfo

 

 

Send comments about this topic to Microsoft

Build date: 10/26/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.