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 override void SetLength(
	long value


Type: System.Int64

The desired length of the current stream in bytes.

Exception Condition

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