다음을 통해 공유


Execute Method

Executes the Content Selection Framework (CSF) 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 ContentSelectionPipeline
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

  • order
    Type: System..::.Object
    Either an order dictionary or an OrderForm object. Cannot be nullNothingnullptra null reference (Nothing in Visual Basic).
  • context
    Type: System..::.Object
    Context dictionary object. Cannot be nullNothingnullptra null reference (Nothing in Visual Basic).

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 could not be found.

PipelineExecutionException

An exception was thrown during pipeline execution.

Remarks

Executes the content selection pipeline using a Commerce.PooledPipeline. Use this method to execute the Content Selection Framework (CSF) 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 the ASP page.

2

Failure: A pipeline component failed.

Permissions

See Also

Reference

ContentSelectionPipeline Class

ContentSelectionPipeline Members

Microsoft.CommerceServer.Runtime.Pipelines Namespace