System.IO.IsolatedStorage.IsolatedStorageFileStream.SetLength Method

Sets the length of this System.IO.IsolatedStorage.IsolatedStorageFileStream object to the specified value.

Syntax

public override void SetLength (long value)

Parameters

value
The new length of the System.IO.IsolatedStorage.IsolatedStorageFileStream object.

Remarks

If the specified value is less than the current length of the System.IO.IsolatedStorage.IsolatedStorageFileStream object, the stream is truncated. If the specified value is larger than the current length of the stream, the stream is expanded. If the stream is expanded, the contents of the stream between the old and the new length are undefined. In order to use this method, an System.IO.IsolatedStorage.IsolatedStorageFileStream object must support both writing and seeking.

Requirements

Namespace: System.IO.IsolatedStorage
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0
Since: .NET 2.0