Execute Method
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Implements the Execute method of IPipelineComponent interface.
Namespace: Microsoft.CommerceServer.Catalog
Assembly: Microsoft.CatalogServer (in Microsoft.CatalogServer.dll)
Syntax
'Declaration
Public Overridable Function Execute ( _
pdispOrder As Object, _
pdispContext As Object, _
lFlags As Integer _
) As Integer
'Usage
Dim instance As QueryCatalogInfoClass
Dim pdispOrder As Object
Dim pdispContext As Object
Dim lFlags As Integer
Dim returnValue As Integer
returnValue = instance.Execute(pdispOrder, _
pdispContext, lFlags)
public virtual int Execute(
Object pdispOrder,
Object pdispContext,
int lFlags
)
public:
virtual int Execute(
[InAttribute] Object^ pdispOrder,
[InAttribute] Object^ pdispContext,
[InAttribute] int lFlags
)
public function Execute(
pdispOrder : Object,
pdispContext : Object,
lFlags : int
) : int
Parameters
- pdispOrder
Type: System..::.Object
An order dictionary object containing the complete order related details.
- pdispContext
Type: System..::.Object
A Context dictionary object containing the context information.
- lFlags
Type: System..::.Int32
Reserved. This parameter should be zero (0).
Return Value
Type: System..::.Int32
A value indicating success status of pipeline component execution.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | pdispOrderis nullNothingnullptra null reference (Nothing in Visual Basic) |
ArgumentNullException | pdispContext is nullNothingnullptra null reference (Nothing in Visual Basic) |
Remarks
Use this method to execute a pipeline component.
Execute instantiates inventory context class, iterates through all the lineitems 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.