SafeBuffer.ByteLength-Eigenschaft
Veröffentlicht: Oktober 2016
Ruft die Größe des Puffers in Bytes.
Diese API ist nicht CLS-kompatibel.
Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Syntax
[CLSCompliantAttribute(false)]
public ulong ByteLength { get; }
public:
[CLSCompliantAttribute(false)]
property unsigned long long ByteLength {
unsigned long long get();
}
[<CLSCompliantAttribute(false)>]
member ByteLength : uint64 with get
<CLSCompliantAttribute(False)>
Public ReadOnly Property ByteLength As ULong
Eigenschaftswert
Type: System.UInt64
Die Anzahl der Bytes im Speicherpuffer.
Ausnahmen
Exception | Condition |
---|---|
InvalidOperationException | Die Initialize -Methode nicht aufgerufen wurde. |
Versionsinformationen
Universelle Windows-Plattform
Verfügbar seit 8
.NET Framework
Verfügbar seit 4.0
Portierbare Klassenbibliothek
Unterstützt in: portierbare .NET-Plattformen
Windows Phone
Verfügbar seit 8.1
Siehe auch
SafeBuffer-Klasse
System.Runtime.InteropServices-Namespace
Zurück zum Anfang