Stat-Methode (ADO)
Gilt für: Access 2013, Office 2013
Ruft Informationen zu einem Stream-Objekt ab.
Syntax
Langer Stream. Stat(StatStg, StatFlag)
Rückgabewert
Ein langer Wert, der den Status des Vorgangs angibt.
Parameter
Parameter | Beschreibung |
---|---|
Statstg | A STATSTG structure that will be filled in with information about the stream. The implementation of the Stat method used by the ADO Stream object does not fill in all of the fields of the structure. |
StatFlag | Gibt an, dass diese Methode einige Member in der STATSTG-Struktur nicht zurückgibt und daher einen Speicherzuweisungsvorgang speichert. Die Werte werden der STATFLAG-Enumeration entnommen. Die STATFLAG-Enumeration weist zwei Werte auf: - STATFLAG_DEFAULT: 0 - STATFLAG_NONAME: 1 |
Hinweise
Die Version der Stat-Methode, die für das Stream-Objekt in ADO implementiert wurde, füllt die folgenden Felder der STATSTG-Struktur aus:
Feld | Beschreibung |
---|---|
pwcsName | A string containing the name of the stream, if one is available and the StatFlag value STATFLAG_NONAME was not specified. |
cbSize | Gibt die Größe des Datenstroms oder des Bytearrays in Byte an. |
mtime | Gibt den Zeitpunkt der letzten Änderung dieses Speichers, Datenstroms oder Bytearrays an. |
ctime | Gibt den Zeitpunkt der Erstellung dieses Speichers, Datenstroms oder Bytearrays an. |
atime | Gibt den Zeitpunkt des letzten Zugriffs auf diesen Speicher, diesen Datenstrom oder dieses Bytearray an. |
If STATFLAG_NONAME is specified in the StatFlag parameter, the name of the stream is not returned.
If STATFLAG_NONAME was not specified in the StatFlag parameter, and there is no name available for the current stream, this value will be E_NOTIMPL.