
IsolatedStorageFileStream.SetLength Method (Int64)
![]() |
---|
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.
Assembly: mscorlib (in mscorlib.dll)
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.
Available since 10
.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0