MemoryStream.TryGetBuffer(ArraySegment<Byte>) MemoryStream.TryGetBuffer(ArraySegment<Byte>) MemoryStream.TryGetBuffer(ArraySegment<Byte>) MemoryStream.TryGetBuffer(ArraySegment<Byte>) Method

Definição

Retorna a matriz de bytes sem sinal com base na qual este fluxo foi criado.Returns the array of unsigned bytes from which this stream was created. O valor de retorno indica se a conversão foi bem-sucedida.The return value indicates whether the conversion succeeded.

public:
 virtual bool TryGetBuffer([Runtime::InteropServices::Out] ArraySegment<System::Byte> % buffer);
public virtual bool TryGetBuffer (out ArraySegment<byte> buffer);
abstract member TryGetBuffer : ArraySegment -> bool
override this.TryGetBuffer : ArraySegment -> bool
Public Overridable Function TryGetBuffer (ByRef buffer As ArraySegment(Of Byte)) As Boolean

Parâmetros

buffer
ArraySegment<Byte>

O segmento da matriz de bytes do qual este fluxo foi criado.The byte array segment from which this stream was created.

Retornos

true se a conversão tiver sido bem-sucedida; caso contrário, false.true if the conversion was successful; otherwise, false.

Aplica-se a