Поделиться через


GetOrderTemplate Method

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

Returns an existing order template using the specified criteria, or creates a new one if none already exist.

Overload List

  Name Description
Aa530568.pubmethod(en-US,CS.70).gif GetOrderTemplate(Guid) Returns an existing OrderTemplate using the specified customer identifier, or creates a new order template if one does not already exist.
Aa530568.pubmethod(en-US,CS.70).gif GetOrderTemplate(Guid, Guid) Returns an existing OrderTemplate using the specified customer identifier and order template identifier, or creates a new one if none currently exist.
Aa530568.pubmethod(en-US,CS.70).gif GetOrderTemplate(Guid, String) Returns an existing instance of the OrderTemplate using the specified customer identifier and the order template name, or creates a new one if none already exist.

Top

Remarks

Use this method to retrieve a OrderContext meeting the specified criteria. If no OrderContext currently exists, one is created.

When a template is created, a unique template ID is automatically assigned. The order group ID for a template is the same as the template ID.

See Also

Reference

OrderContext Class

OrderContext Members

Microsoft.CommerceServer.Runtime.Orders Namespace