ValidateSalesOrder Method
Validate the given sales order.
Namespace: Microsoft.Dynamics.Commerce.Runtime.Data
Assembly: Microsoft.Dynamics.Commerce.Runtime (in Microsoft.Dynamics.Commerce.Runtime.dll)
Syntax
'Declaration
Public Shared Sub ValidateSalesOrder ( _
transaction As SalesTransaction _
)
'Usage
Dim transaction As SalesTransaction
SalesOrderDataManager.ValidateSalesOrder(transaction)
public static void ValidateSalesOrder(
SalesTransaction transaction
)
public:
static void ValidateSalesOrder(
SalesTransaction^ transaction
)
Parameters
- transaction
Type: Microsoft.Dynamics.Commerce.Runtime.DataModel.SalesTransaction
Exceptions
Exception | Condition |
---|---|
AggregateException | thrown if there are missing required fields. AggregateException.InnerExceptions will contain a collection of specific exceptions, usually ArgumentNullException. |
Remarks
An AggregateException is thrown if errors are found.