Partilhar via


Execute Method

A value indicating error level of the pipeline component execution.

Namespace:  Microsoft.CommerceServer.Orders
Assembly:  Microsoft.CommerceServer.Orders.DataManagement (in Microsoft.CommerceServer.Orders.DataManagement.dll)

Syntax

'Declaration
Public Function Execute ( _
    pdispOrder As Object, _
    pdispContext As Object, _
    lFlags As Integer _
) As Integer
'Usage
Dim instance As PaymentMethodRouterPipelineComponent
Dim pdispOrder As Object
Dim pdispContext As Object
Dim lFlags As Integer
Dim returnValue As Integer

returnValue = instance.Execute(pdispOrder, _
    pdispContext, lFlags)
public int Execute(
    Object pdispOrder,
    Object pdispContext,
    int lFlags
)
public:
virtual int Execute(
    Object^ pdispOrder, 
    Object^ pdispContext, 
    int lFlags
) sealed
public final function Execute(
    pdispOrder : Object, 
    pdispContext : Object, 
    lFlags : int
) : int

Parameters

  • pdispOrder
    Type: System..::.Object
    An OrderForm dictionary object containing the complete order form related details.
  • pdispContext
    Type: System..::.Object
    A Context dictionary object containing the context information.

Return Value

Type: System..::.Int32
A value indicating error level of the pipeline component execution.
Implements the Execute method of IPipelineComponent interface.

Exceptions

Exception Condition
ArgumentNullException

pdispOrder is nullNothingnullptra null reference (Nothing in Visual Basic).

ArgumentNullException

pdispContext is nullNothingnullptra null reference (Nothing in Visual Basic).

Remarks

Main function for this component. Executes the pipeline.

Execute instantiates inventory context class, iterates through all the line items in the order and performs inventory check for each line item.

Use this method to execute a pipeline component.

Execute instantiates inventory context class, iterates through all the line items in the order and performs inventory check for each line item.

The return value indicates the success status.

Value

Description

Meaning

1

Success

success status of pipeline component execution

2

Warning

warning status of pipeline component execution

3

Failure

error status of pipeline component execution

Permissions

See Also

Reference

PaymentMethodRouterPipelineComponent Class

PaymentMethodRouterPipelineComponent Members

Microsoft.CommerceServer.Orders Namespace