Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Implements the Execute method of IPipelineComponent interface.
Namespace: Microsoft.CommerceServer.Inventory
Assembly: Microsoft.CatalogServer (in Microsoft.CatalogServer.dll)
Syntax
'Declaration
Public Function Execute ( _
pdispOrder As Object, _
pdispContext As Object, _
lFlags As Integer _
) As Integer
'Usage
Dim instance As UpdateInventory
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 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
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.
The return value indicates the success status.
Value |
Description |
Meaning |
---|---|---|
1 |
Success |
Successful execution of pipeline component. |
2 |
Warning |
Execution of pipeline component generated a warning. |
3 |
Failure |
Execution of pipeline component failed. |
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.