RandomAccess.GetLength(SafeFileHandle) Methode

Definition

Ruft die Länge der Datei in Bytes ab.

public:
 static long GetLength(Microsoft::Win32::SafeHandles::SafeFileHandle ^ handle);
public static long GetLength(Microsoft.Win32.SafeHandles.SafeFileHandle handle);
static member GetLength : Microsoft.Win32.SafeHandles.SafeFileHandle -> int64
Public Shared Function GetLength (handle As SafeFileHandle) As Long

Parameter

handle
SafeFileHandle

Das Dateihandle.

Gibt zurück

Ein langer Wert, der die Länge der Datei in Byte darstellt.

Ausnahmen

handle ist null.

handle ist ungültig.

Die Datei wird geschlossen.

Die Datei unterstützt nicht die Suche (Pipe oder Socket).

Gilt für: