Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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(
	[OutAttribute] ArraySegment<unsigned char>% 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:
© 2017 Microsoft