MemoryStream.TryGetBuffer Method (ArraySegment<Byte>)

.NET Framework (current version)
 

Returns the array of unsigned bytes from which this stream was created. The return value indicates whether the conversion succeeded.

Namespace:   System.IO
Assembly:  mscorlib (in mscorlib.dll)

public virtual bool TryGetBuffer(
	out ArraySegment<byte> buffer
)

Parameters

buffer
Type: System.ArraySegment<Byte>

The byte array segment from which this stream was created.

Return Value

Type: System.Boolean

true if the conversion was successful; otherwise, false.

Universal Windows Platform
Available since 10
.NET Framework
Available since 4.6
Return to top
Show: