다음을 통해 공유


CReplicationServer.Put Method

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

Sets a global property for the Commerce Server Staging (CSS) service on a server.

void Put (string propName object propValue)

Parameters

  • propName
    The name of the property to set. Property names are not case-sensitive. The following table lists the valid property names.

    Property

    Description

    FullLogging

    A value that indicates whether full text is enabled for logging. Valid values are "Yes" and "No". By default, full-text logging is disabled.

    Bb498289.alert_note(en-US,CS.70).gifNote:
    Do not enable full-text logging except for debugging.

    MailFrom

    The e-mail address of an account that represents the source of the e-mail, for example, CSSServer1@example.com.

    MailHost

    The name of the SMTP host, for example, smtpserver.example.com.

    MailTo

    The e-mail address to receive notifications when a staging project succeeds or fails, for example, CSSAdmin@example.com.

    MailToFail

    The e-mail address to receive notifications when a staging project fails, for example, CSSAdmin@example.com.

    MailToSuccess

    The e-mail address to receive notifications when a staging project succeeds, for example, CSSAdmin@example.com.

    Password

    The default password to use when authenticating against other CSS servers.

    Bb498289.alert_note(en-US,CS.70).gifNote:
    You must be logged on to the server to set this property. This property cannot be set remotely because CSS does not transmit passwords.

    RollbacksToKeep

    The number of rollbacks that are permitted. Valid values are positive integers between 1 and 9.

    Bb498289.alert_note(en-US,CS.70).gifNote:
    This property is valid only for Web content staging projects. You must explicitly cast any whole number value that you assign to this property to a 32-bit (long) integer.

    TransactionMethod

    A value that indicates whether to perform transactional staging. Valid values are "Yes" and "No".

    Bb498289.alert_note(en-US,CS.70).gifNote:
    This property is valid only for Web content staging projects.

    Username

    The user name of the default authentication account to use when authenticating against other CSS servers, for example, contoso\CSSUser.

  • propValue
    The value of the property.

Remarks

You must have CSS administrator permissions to call this method.

Properties are cached locally and are not applied to the CSS service until you call the Commit method.

The CReplicationServer.Put method corresponds to the COM method named ReplicationServer.Put.

Example

The following example sets the MailHost property to Contoso on the current server.

CReplicationServer replicationServer = new CReplicationServer();
  replicationServer.Initialize("");
  replicationServer.Put("MailHost", "Contoso");
  replicationServer.Commit();  

See Also

Other Resources

Managing the CSS Service

How to Set, Modify, and Retrieve Global Properties for a CSS Service

How to Retrieve Staging Information

CReplicationServer.Get Method

CReplicationServer Class