Jaa


CReplicationServer.Get Method

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

Retrieves a property that is defined for the Commerce Server Staging (CSS) service on a server.

object Get(string propName)

Parameters

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

    Property

    Description

    FullLogging

    A value that indicates whether full text is enabled for logging. Valid values are "Yes" and "No".

    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.

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

    RollbacksToKeep

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

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

    TransactionMethod

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

    Bb520909.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.

Return Value

The value of the requested property.

Remarks

You must have CSS administrator or operator permissions to call this method.

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

Example

The following example identifies whether transaction processing is enabled for the server named Test by checking the value of the TransactionMethod property.

CReplicationServer replicationServer = new CReplicationServer();
  replicationServer.Initialize("Test");
  string transactionEnabled = (string)replicationServer.Get("TransactionMethod");
    if (transactionEnabled == "Yes")
    Console.WriteLine("Test has transaction processing.");
    else
    Console.WriteLine("Test does not have transaction processing"); 

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.Put Method

CReplicationServer Class