Enum STGM
The STGM enumeration values are used in the IStorage, IStream, and IPropertySetStorage interfaces. These elements are often combined using an OR operator.
Namespace: Syncfusion.CompoundFile.XlsIO.Native
Assembly: Syncfusion.XlsIO.Base.dll
Syntax
[Flags]
public enum STGM
Fields
Name | Description |
---|---|
STGM_CONVERT | Creates the new object while preserving existing data in a stream named "Contents". |
STGM_CREATE | Indicates that an existing storage object or stream should be removed before the new one replaces it. |
STGM_DELETEONRELEASE | Indicates that the underlying file is to be automatically destroyed when the root storage object is released. |
STGM_DIRECT | In direct mode, each change to a storage or stream element is written as it occurs. |
STGM_DIRECT_SWMR | The STGM_DIRECT_SWMR supports direct mode for single-writer, multireader file operations. |
STGM_FAILIFTHERE | Causes the create operation to fail if an existing object with the specified name exists. |
STGM_NOSCRATCH | In transacted mode, a temporary scratch file is usually used to save modifications until the Commit method is called. |
STGM_NOSNAPSHOT | This flag is used when opening a storage object with STGM_TRANSACTED and without STGM_SHARE_EXCLUSIVE or STGM_SHARE_DENY_WRITE. |
STGM_PRIORITY | Opens the storage object with exclusive access to the most recently committed version. |
STGM_READ | Indicates that the object is read-only, meaning that modifications cannot be made. |
STGM_READWRITE | STGM_READWRITE allows you to both access and modify an object's data. |
STGM_SHARE_DENY_NONE | Specifies that subsequent openings of the object are not denied read or write access. If no flag from the sharing group is specified, this flag is assumed. |
STGM_SHARE_DENY_READ | Prevents others from subsequently opening the object in STGM_READ mode. It is typically used on a root storage object. |
STGM_SHARE_DENY_WRITE | Prevents others from subsequently opening the object for STGM_WRITE or STGM_READWRITE access. |
STGM_SHARE_EXCLUSIVE | Prevents others from subsequently opening the object in any mode. In transacted mode, sharing of STGM_SHARE_DENY_WRITE or STGM_SHARE_EXCLUSIVE can significantly improve performance since they don't require snapshotting. |
STGM_SIMPLE | STGM_SIMPLE is a mode that provides a much faster implementation of a compound file in a limited, but frequently used case. |
STGM_TRANSACTED | In transacted mode, changes are buffered and written only if an explicit commit operation is called. |
STGM_WRITE | STGM_WRITE lets you save changes to the object, but does not permit access to its data. |