次の方法で共有


IsolatedStorageFileStream.SetLength メソッド

IsolatedStorageFileStream 長を指定した value に設定します。

Overrides Public Sub SetLength( _
   ByVal value As Long _)
[C#]
public override void SetLength(longvalue);
[C++]
public: void SetLength(__int64value);
[JScript]
public override function SetLength(
   value : long);

パラメータ

解説

IsolatedStorageFileStream の現在の長さ未満の value を指定した場合は、ストリームが切り捨てられます。ストリームの現在の長さを超える value を設定した場合は、ストリームが拡張されます。ストリームが拡張された場合、元のストリーム長と新しいストリーム長の間のストリームの内容は不明です。このメソッドを使用するには、 IsolatedStorageFileStream が書き込みとシークの両方をサポートしている必要があります

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

IsolatedStorageFileStream クラス | IsolatedStorageFileStream メンバ | System.IO.IsolatedStorage 名前空間