Share via


DBStorage.CommitData Method (PIA)

Use this method to update the database table based on the contents of the specified Dictionary or OrderForm object.

Definition

[Visual Basic .NET]

Imports Microsoft.CommerceServer.Interop.Orders
…
Public Sub CommitData(vtReserved As Object,
 pdispData As Object)

[C#]

using Microsoft.CommerceServer.Interop.Orders;
…
public void  CommitData(objectvtReserved,
 objectpdispData);

Parameters

[Visual Basic .NET]

  • vtReserved
    An Object reserved for future use. The CommitData method ignores the value of this parameter.
  • pdispData
    An object reference to the OrderForm or Dictionary object that contains the updated data.

[C#]

  • vtReserved
    An object reserved for future use. The CommitData method ignores the value of this parameter.
  • pdispData
    An object interface pointer on the OrderForm or Dictionary object that contains the updated data.

Exceptions

This method may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.

Remarks

The CommitData method does not support database tables containing fields of type TimeStamp. Instead, use the vtChanged parameter to the DBStorage.InitStorage method, which provides the same functionality as using TimeStamp fields.

[Visual Basic .NET]

Example

' Order is a Commerce.OrderForm object; OrderFormStorage is 
' an initialized Commerce.DBStorage object
Order.order_id = "Order_tmp"
Order.shopper_id = "Shopper_tmp"
OrderFormStorage.CommitData(DBNull.Value, Order)

Requirements

Namespace: Microsoft.CommerceServer.Interop.Orders

Platforms: Windows 2000, Windows Server 2003

Assembly: commercelib (in commercelib.dll)

See Also

DBStorage Class

DBStorage.InitStorage

DBStorage.InsertData

Copyright © 2005 Microsoft Corporation.
All rights reserved.