<PackageReference Include="System.Drawing.Common" Version="10.0.0-preview.1.25080.3" />

IStorage

public static void PopulateVTable(Vtbl* vtable)

public uint AddRef()

public HRESULT Commit(uint grfCommitFlags)

The Commit method ensures that any changes made to a storage object open in transacted mode are reflected in the parent storage.

public HRESULT CopyTo(uint ciidExclude, Guid* rgiidExclude, UInt16** snbExclude, IStorage* pstgDest)

Copies the entire contents of an open storage object to another storage object.

public HRESULT CreateStorage(PCWSTR pwcsName, STGM grfMode, uint reserved1, uint reserved2, IStorage** ppstg)

public HRESULT CreateStream(PCWSTR pwcsName, STGM grfMode, uint reserved1, uint reserved2, IStream** ppstm)

Creates and opens a stream object with the specified name contained in this storage object.

public HRESULT DestroyElement(PCWSTR pwcsName)

public HRESULT EnumElements(uint reserved1, Void* reserved2, uint reserved3, IEnumSTATSTG** ppenum)

The EnumElements method retrieves a pointer to an enumerator object that can be used to enumerate the storage and stream objects contained within this storage object.

public HRESULT MoveElementTo(PCWSTR pwcsName, IStorage* pstgDest, PCWSTR pwcsNewName, uint grfFlags)

The MoveElementTo method copies or moves a substorage or stream from this storage object to another storage object.

public HRESULT OpenStorage(PCWSTR pwcsName, IStorage* pstgPriority, STGM grfMode, UInt16** snbExclude, uint reserved, IStorage** ppstg)

Opens an existing storage object with the specified name in the specified access mode.

public HRESULT OpenStream(PCWSTR pwcsName, Void* reserved1, STGM grfMode, uint reserved2, IStream** ppstm)

Opens an existing stream object within this storage object in the specified access mode.

public HRESULT QueryInterface(Guid* riid, Void** ppvObject)

public uint Release()

public HRESULT RenameElement(PCWSTR pwcsOldName, PCWSTR pwcsNewName)

The RenameElement method renames the specified substorage or stream in this storage object.

public HRESULT Revert()

The Revert method discards all changes that have been made to the storage object since the last commit operation.

public HRESULT SetClass(Guid* clsid)

The SetClass method assigns the specified class identifier (CLSID) to this storage object.

public HRESULT SetElementTimes(PCWSTR pwcsName, FILETIME* pctime, FILETIME* patime, FILETIME* pmtime)

The SetElementTimes method sets the modification, access, and creation times of the specified storage element, if the underlying file system supports this method.

public HRESULT SetStateBits(uint grfStateBits, uint grfMask)

The SetStateBits method stores up to 32 bits of state information in this storage object.

public HRESULT Stat(STATSTG* pstatstg, uint grfStatFlag)

The Stat method retrieves the STATSTG structure for this open storage object.