Share via


OrderContext.GetOrderTemplate (Guid, Guid) Method (BCL)

Use this method to retrieve an existing order template instance.

Definition

[Visual Basic .NET]

Public Function GetOrderTemplate( _ByValuserID As System.Guid, _
  ByValorderTemplateID As System.Guid _
) As OrderTemplate

[C#]

public OrderTemplate GetOrderTemplate(System.GuiduserID,
  System.GuidorderTemplateID);

Parameters

[Visual Basic .NET]

  • userID
    The ID of the user owning this template.
  • orderTemplateID
    The template ID of the order template instance.

[C#]

  • userID
    The ID of the user owning this template.
  • orderTemplateID
    The template ID of the order template instance.

Return Value

An OrderTemplate class instance, if one is found. Null, otherwise.

Requirements

Namespace: Microsoft.CommerceServer.Runtime.Orders

Platforms: Windows 2000, Windows Server 2003

Assembly: Microsoft.CommerceServer.Runtime.dll

See Also

Example Code for the Microsoft.CommerceServer.Runtime.Orders Namespace

Copyright © 2005 Microsoft Corporation.
All rights reserved.