Partilhar via


Execute Method

Executes the Order Processing (OPP) pipeline.

Namespace:  Microsoft.CommerceServer.Runtime.Pipelines
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Overrides Function Execute ( _
    order As Object, _
    context As Object _
) As Integer
'Usage
Dim instance As OrderPipeline
Dim order As Object
Dim context As Object
Dim returnValue As Integer

returnValue = instance.Execute(order, _
    context)
public override int Execute(
    Object order,
    Object context
)
public:
virtual int Execute(
    Object^ order, 
    Object^ context
) override
public override function Execute(
    order : Object, 
    context : Object
) : int

Parameters

Return Value

Type: System..::.Int32
Error level code. See table in Remarks.

Exceptions

Exception Condition
ArgumentNullException

One of the order or context arguments is nullNothingnullptra null reference (Nothing in Visual Basic).

CommerceCreateObjectException

The Pipeline COM object needed to execute this pipeline could not be found.

PipelineExecutionException

An exception occurred during pipeline execution.

Remarks

Executes the order pipeline. Use this method to execute the Order Processing (OPP) pipeline.

Returns an error level code from the pipeline execution, one of the following:

Value

Description

0

Success: The pipeline ran successfully.

1

Warning: A pipeline component raised a warning. Generally, these are basket or user errors that would be reported to the user through a web page.

2

Failure: A pipeline component failed.

Permissions

See Also

Reference

OrderPipeline Class

OrderPipeline Members

Microsoft.CommerceServer.Runtime.Pipelines Namespace