WindowsRuntimeBuffer::Create Method (Int32)
.NET Framework (current version)
Returns an empty Windows.Storage.Streams.IBuffer interface that has the specified maximum capacity.
This API is not CLS-compliant. Namespace: System.Runtime.InteropServices.WindowsRuntime
Assembly: System.Runtime.WindowsRuntime (in System.Runtime.WindowsRuntime.dll)
Parameters
- capacity
- Type: System::Int32
The maximum number of bytes the buffer can hold.
Return Value
Type: IBufferA Windows.Storage.Streams.IBuffer interface that has the specified capacity and a Length property equal to 0 (zero).
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | capacity is less than 0 (zero). |
Show: