Partilhar via


CReplicationProject.Flags Property

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

Gets or sets a bitmask that contains the flag assignments for the Commerce Server Staging (CSS) project. These assignments determine how the replication is performed.

object Flags { set; get; }

Return Value

A bitmask that specifies the settings for the project.

Remarks

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

For a description of the flags, see CSS API Flags.

The CReplicationProject.Flags property corresponds to the COM property named ReplicationProject.Flags.

Example

The following example sets the Flags property to the value 8, which forces the replication of all files in the project named Project1, regardless of whether they have been changed.

CReplicationServer replicationServer = new CReplicationServer();
  replicationServer.Initialize("");

  CReplicationProject replicationProject = (CReplicationProject)replicationServer.OpenProject("Project1", CSS_PROJECT_CREATION.OPEN_EXISTING_PROJECT);
  // set flags to force replication
  replicationProject.set_Flags(8);
  replicationProject.Start(0);

See Also

Other Resources

Projects

How to Create and Modify a Staging Project

How to Start and Stop Project Replication

How to Retrieve Project Information

CSS API Flags

CReplicationProject.Get Method

CReplicationProject Class