Gets or sets the CContact object representing the contact to whom this COrder will ship.

Namespace:  Asi.iBO.Commerce
Assembly:  Asi.iBO (in Asi.iBO.dll) Version: 15.1.2.0

Syntax

C#
public CContact ShipToContact { get; set; }
Visual Basic (Declaration)
Public Property ShipToContact As CContact
Visual C++
public:
property CContact^ ShipToContact {
	CContact^ get ();
	void set (CContact^ value);
}

Field Value

A CContact object representing the contact to whom this COrder will ship.

Remarks

There are 3 ways to set the contact information on an order:

1. Set the ShipToContactId to the ContactId of a contact that already exists in the iMIS database. In this case, the contact information for that contact will be copied to the COrder and can be modified on the order by using the name and address related properties of the order. If the method SaveContactChanges()()() is called after changes are made, those changes will affect the contact record in the Contact Management system. Otherwise, they will only affect the order.

2. Set this property to an instantiated CContact object. This contact does not have to have been saved to the database before setting this property, but, if the contact should be saved in the Contact Management system, that should be done before saving the order to ensure the keys all match up.

3. Set the individual name and address related fields on the order. This will create a contact that exists only on the order (i.e., not in the Contact Management system) unless the method SaveContactChanges()()() is called. If SaveContactChanges()()() is not called, this contact info should be accessed through the ShipToContactBasic property instead.

See Also