Partilhar via


CReplicationClient.SkipLockedFiles Property

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Gets or sets a flag that specifies how Commerce Server Staging (CSS) should manage the replication of locked files.

Note

This property and the CReplicationClient object are used only to stage individual files. You cannot use this property to stage projects.

Object SkipLockedFiles { set; get; }

Return Value

The integer 1 if no attempt is made to send or overwrite locked files; otherwise, 0 (zero).

Remarks

You must have CSS administrator or operator rights on the project to get or set this property.

Note

CSS will not deploy a file from the source server or overwrite a file on the destination server if the file is locked or currently being used. If the value of this property is 0 and the files are being used, the replication will fail.

The CReplicationClient.SkipLockedFiles property corresponds to a COM property named ReplicationClient.SkipLockedFiles.

Example

The following example sets the SkipLockedFiles to 1 to specify that CSS should not overwrite locked files.

CReplicationClient replicationClient = new CReplicationClient();
replicationClient.Initialize("Project1");
replicationClient.set_SkipLockedFiles(1);

See Also

Other Resources

CReplicationClient.DeleteFile Method

CReplicationClient.GetExtendedErrorInfo Method

CReplicationProject.EnumDestination Method

CReplicationClient Class