SafeBuffer.Initialize-Methode: (UInt64)
Veröffentlicht: Oktober 2016
Definiert die Zuordnungsgröße des Arbeitsspeicherbereichs in Bytes. Sie müssen diese Methode aufrufen, bevor Sie verwenden die SafeBuffer Instanz.
Diese API ist nicht CLS-kompatibel.
Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Syntax
[CLSCompliantAttribute(false)]
public void Initialize(
ulong numBytes
)
public:
[CLSCompliantAttribute(false)]
void Initialize(
unsigned long long numBytes
)
[<CLSCompliantAttribute(false)>]
member Initialize :
numBytes:uint64 -> unit
<CLSCompliantAttribute(False)>
Public Sub Initialize (
numBytes As ULong
)
Parameter
numBytes
Type: System.UInt64Die Anzahl von Bytes im Puffer.
Ausnahmen
Exception | Condition |
---|---|
ArgumentOutOfRangeException | numBytes ist kleiner als Null. - oder - numBytes ist größer als der verfügbare Adressbereich. |
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
Initialize Überladen
SafeBuffer-Klasse
System.Runtime.InteropServices-Namespace
Zurück zum Anfang