WindowsRuntimeStreamExtensions.AsRandomAccessStream(Stream) Metodo
Definizione
Importante
Questa API non è conforme a CLS.
Converte il flusso specificato in un flusso di accesso casuale.Converts the specified stream to a random access stream.
public:
[System::Runtime::CompilerServices::Extension]
static Windows::Storage::Streams::IRandomAccessStream ^ AsRandomAccessStream(System::IO::Stream ^ stream);
[System.CLSCompliant(false)]
public static Windows.Storage.Streams.IRandomAccessStream AsRandomAccessStream (this System.IO.Stream stream);
[<System.CLSCompliant(false)>]
static member AsRandomAccessStream : System.IO.Stream -> Windows.Storage.Streams.IRandomAccessStream
<Extension()>
Public Function AsRandomAccessStream (stream As Stream) As IRandomAccessStream
Parametri
- stream
- Stream
Flusso da convertire.The stream to convert.
Restituisce
IRandomAccessStream di Windows Runtime, che rappresenta il flusso convertito.A Windows Runtime IRandomAccessStream, which represents the converted stream.
- Attributi
Commenti
Nota
In Visual Basic e C# è possibile chiamare questo metodo come metodo di istanza su qualsiasi oggetto di tipo Stream .In Visual Basic and C#, you can call this method as an instance method on any object of type Stream. Per chiamare il metodo usando la sintassi del metodo di istanza, omettere il primo parametro.When you use instance method syntax to call this method, omit the first parameter. Per ulteriori informazioni, vedere metodi di estensione (Visual Basic) o metodi di estensione (Guida per programmatori C#).For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).