次の方法で共有


LastModified Property

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Gets the last-modified date for the current order.

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

Syntax

'Declaration
Public ReadOnly Property LastModified As DateTime
'Usage
Dim instance As OrderGroup
Dim value As DateTime

value = instance.LastModified
public DateTime LastModified { get; }
public:
property DateTime LastModified {
    DateTime get ();
}
public function get LastModified () : DateTime

Property Value

Type: System..::.DateTime
A DateTime containing the date the current instance was last modified.

Exceptions

Exception Condition
InvalidOperationException

The order group has been disposed, either directly or by conversion from an OrderTemplate to a Basket or a Basket to a PurchaseOrder.

Remarks

LastModified contains the last time any property on the OrderGroup or any contained objects were modified, including additions to collections.

When LastModified or other DateTime fields are stored or loaded back from the computer that is running SQL Server, the resolution has to be lower than that with TickCount.

Permissions

See Also

Reference

OrderGroup Class

OrderGroup Members

Microsoft.CommerceServer.Runtime.Orders Namespace