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.

IsolatedStorageFileStream.SetLength Method (Int64)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Sets the length of this IsolatedStorageFileStream object to the specified value.

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

public override void SetLength(
	long value
)

Parameters

value
Type: System.Int64

The new length of the IsolatedStorageFileStream object.

Exception Condition
ArgumentOutOfRangeException

value is a negative number.

If the specified value is less than the current length of the 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 IsolatedStorageFileStream object must support both writing and seeking.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2018 Microsoft