ValidateSalesOrder Method

Validate the given sales order.

Namespace:  Microsoft.Dynamics.Commerce.Runtime.Data
Assembly:  Microsoft.Dynamics.Commerce.Runtime (in Microsoft.Dynamics.Commerce.Runtime.dll)

public static void ValidateSalesOrder(
	SalesTransaction transaction
)

ExceptionCondition
AggregateException

thrown if there are missing required fields. AggregateException.InnerExceptions will contain a collection of specific exceptions, usually ArgumentNullException.

An AggregateException is thrown if errors are found.

Community Additions

Show: