Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
The Revert method discards all changes that have been made to a transacted stream since the last IStream::Commit call. On streams open in direct mode and streams using the COM compound file implementation of IStream::Revert, this method has no effect.
Syntax
HRESULT Revert();
Return value
This method can return one of these values.
| Return code | Description | 
|---|---|
| S_OK | The stream was successfully reverted to its previous version. | 
| E_PENDING | Asynchronous Storage only: Part or all of the stream's data is currently unavailable. | 
Remarks
The Revert method discards changes made to a transacted stream since the last commit operation.
Requirements
| Requirement | Value | 
|---|---|
| Minimum supported client | Windows 2000 Professional [desktop apps | UWP apps] | 
| Minimum supported server | Windows 2000 Server [desktop apps | UWP apps] | 
| Target Platform | Windows | 
| Header | objidl.h | 
| Library | Uuid.lib | 
| DLL | Ole32.dll |