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.

MemoryMappedViewStream::SetLength Method (Int64)

.NET Framework (current version)
 

This API supports the product infrastructure and is not intended to be used directly from your code.

Sets the length of the current stream.

Namespace:   System.IO.MemoryMappedFiles
Assembly:  System.Core (in System.Core.dll)

public:
virtual void SetLength(
	long long value
) override

Parameters

value
Type: System::Int64

The desired length of the current stream in bytes.

Exception Condition
NotSupportedException

This method is not supported.

This method is internal only, because a stream that represents a view is not considered to have a length.

.NET Framework
Available since 4.0
Return to top
Show:
© 2017 Microsoft