IWdsTransportCacheable::Discard method (wdstptmgmt.h)

Discards all changes made to the object data members by clearing the IWdsTransportCacheable::Dirty property and then calling the object's IWdsTransportCacheable::Refresh method to reread the current object data.

Syntax

HRESULT Discard();

Return value

None

Remarks

This method can be called on any object.

Unlike Refresh, which always refreshes object data (as long as the object's Dirty property has been set), this method checks first that the object's Dirty property has been set. If it has, the method resets the Dirty property and then rereads the current values of all data members. If Dirty has not been set, this method takes no action and returns immediately.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header wdstptmgmt.h
DLL Wdstptmgmt.dll

See also

IWdsTransportCacheable