WindowsRuntimeBufferExtensions.GetWindowsRuntimeBuffer Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
| Nome | Descrizione |
|---|---|
| GetWindowsRuntimeBuffer(MemoryStream) |
Restituisce un Windows. Interfaccia Storage.Streams.IBuffer che rappresenta la stessa memoria del flusso di memoria specificato. |
| GetWindowsRuntimeBuffer(MemoryStream, Int32, Int32) |
Restituisce un Windows. Interfaccia Storage.Streams.IBuffer che rappresenta un'area all'interno della memoria rappresentata dal flusso di memoria specificato. |
GetWindowsRuntimeBuffer(MemoryStream)
Importante
Questa API non è conforme a CLS.
Restituisce un Windows. Interfaccia Storage.Streams.IBuffer che rappresenta la stessa memoria del flusso di memoria specificato.
public:
[System::Runtime::CompilerServices::Extension]
static Windows::Storage::Streams::IBuffer ^ GetWindowsRuntimeBuffer(System::IO::MemoryStream ^ underlyingStream);
[System.CLSCompliant(false)]
public static Windows.Storage.Streams.IBuffer GetWindowsRuntimeBuffer(this System.IO.MemoryStream underlyingStream);
[<System.CLSCompliant(false)>]
static member GetWindowsRuntimeBuffer : System.IO.MemoryStream -> Windows.Storage.Streams.IBuffer
<Extension()>
Public Function GetWindowsRuntimeBuffer (underlyingStream As MemoryStream) As IBuffer
Parametri
- underlyingStream
- MemoryStream
Flusso che fornisce la memoria di backup per IBuffer.
Valori restituiti
Un Windows. Interfaccia Storage.Streams.IBuffer supportata dalla stessa memoria che esegue il backup del flusso di memoria specificato.
- Attributi
Si applica a
GetWindowsRuntimeBuffer(MemoryStream, Int32, Int32)
Importante
Questa API non è conforme a CLS.
Restituisce un Windows. Interfaccia Storage.Streams.IBuffer che rappresenta un'area all'interno della memoria rappresentata dal flusso di memoria specificato.
public:
[System::Runtime::CompilerServices::Extension]
static Windows::Storage::Streams::IBuffer ^ GetWindowsRuntimeBuffer(System::IO::MemoryStream ^ underlyingStream, int positionInStream, int length);
[System.CLSCompliant(false)]
public static Windows.Storage.Streams.IBuffer GetWindowsRuntimeBuffer(this System.IO.MemoryStream underlyingStream, int positionInStream, int length);
[<System.CLSCompliant(false)>]
static member GetWindowsRuntimeBuffer : System.IO.MemoryStream * int * int -> Windows.Storage.Streams.IBuffer
<Extension()>
Public Function GetWindowsRuntimeBuffer (underlyingStream As MemoryStream, positionInStream As Integer, length As Integer) As IBuffer
Parametri
- underlyingStream
- MemoryStream
Flusso che condivide la memoria con IBuffer.
- positionInStream
- Int32
Posizione dell'area di memoria condivisa in underlyingStream.
- length
- Int32
Dimensioni massime dell'area di memoria condivisa. Se il numero di byte in underlyingStream, a partire da positionInStream, è minore di length, l'IBuffer restituito rappresenta solo i byte disponibili.
Valori restituiti
Un Windows. Interfaccia Storage.Streams.IBuffer supportata da un'area all'interno della memoria che esegue il backup del flusso di memoria specificato.
- Attributi
Eccezioni
underlyingStream è null.
positionInStream o length è minore di 0 (zero).
positionInStream è oltre la fine di underlyingStream.
underlyingStream non può esporre il buffer di memoria sottostante.
underlyingStream è stato chiuso.