STATSTG Structure

Contains statistical information about an open storage, stream, or byte-array object.

Namespace:  System.Runtime.InteropServices.ComTypes
Assembly:  mscorlib (in mscorlib.dll)

public struct STATSTG

The STATSTG type exposes the following members.

  NameDescription
Public methodSupported by Portable Class LibraryEqualsIndicates whether this instance and a specified object are equal. (Inherited from ValueType.)
Public methodSupported by Portable Class LibraryGetHashCodeReturns the hash code for this instance. (Inherited from ValueType.)
Public methodSupported by Portable Class LibraryGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodSupported by Portable Class LibraryToStringReturns the fully qualified type name of this instance. (Inherited from ValueType.)
Top

  NameDescription
Public fieldSupported by Portable Class LibraryatimeSpecifies the last access time for this storage, stream, or byte array.
Public fieldSupported by Portable Class LibrarycbSizeSpecifies the size, in bytes, of the stream or byte array.
Public fieldSupported by Portable Class LibraryclsidIndicates the class identifier for the storage object.
Public fieldSupported by Portable Class LibraryctimeIndicates the creation time for this storage, stream, or byte array.
Public fieldSupported by Portable Class LibrarygrfLocksSupportedIndicates the types of region locking supported by the stream or byte array.
Public fieldSupported by Portable Class LibrarygrfModeIndicates the access mode that was specified when the object was opened.
Public fieldSupported by Portable Class LibrarygrfStateBitsIndicates the current state bits of the storage object (the value most recently set by the IStorage::SetStateBits method).
Public fieldSupported by Portable Class LibrarymtimeIndicates the last modification time for this storage, stream, or byte array.
Public fieldSupported by Portable Class LibrarypwcsNameRepresents a pointer to a null-terminated string containing the name of the object described by this structure.
Public fieldSupported by Portable Class LibraryreservedReserved for future use.
Public fieldSupported by Portable Class LibrarytypeIndicates the type of storage object, which is one of the values from the STGTY enumeration.
Top

For more information, see the existing documentation for STATSTG in the MSDN library.

The common language runtime throws an exception when a COM method in native code returns an HRESULT. For more information, see How to: Map HRESULTs and Exceptions.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2015 Microsoft