SetChildDirty Method (DateTime)
Called by child class instances when a change occurs to child data members that are mapped to SQL data storage.
Namespace: Microsoft.CommerceServer.Runtime.Orders
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Overrides Sub SetChildDirty ( _
modificationTime As DateTime _
)
'Usage
Dim instance As OrderGroup
Dim modificationTime As DateTime
instance.SetChildDirty(modificationTime)
public override void SetChildDirty(
DateTime modificationTime
)
public:
virtual void SetChildDirty(
DateTime modificationTime
) override
public override function SetChildDirty(
modificationTime : DateTime
)
Parameters
- modificationTime
Type: System..::.DateTime
A DateTime containing the time of the change.
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
SetChildDirty is called by the SetDirty implementations within child classes to propagate the dirty state upward, eventually up to base classes. Parent class implementations use this notification to update local "last updated" DateTime properties, and potentially to optimize update queries to storage.
The child did not generate a DateTime matching the time of the change.
Where applicable, forwards the dirty notification upward to a parent class using parent.SetChildDirty().
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.