IsolatedStorageFile.CreateFile(String) メソッド

定義

分離ストア内にファイルを作成します。

public:
 System::IO::IsolatedStorage::IsolatedStorageFileStream ^ CreateFile(System::String ^ path);
public System.IO.IsolatedStorage.IsolatedStorageFileStream CreateFile (string path);
[System.Runtime.InteropServices.ComVisible(false)]
public System.IO.IsolatedStorage.IsolatedStorageFileStream CreateFile (string path);
member this.CreateFile : string -> System.IO.IsolatedStorage.IsolatedStorageFileStream
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.CreateFile : string -> System.IO.IsolatedStorage.IsolatedStorageFileStream
Public Function CreateFile (path As String) As IsolatedStorageFileStream

パラメーター

path
String

作成するファイルの相対パス。

戻り値

新しい分離ストレージ ファイル。

属性

例外

分離ストアは削除されています。

- または -

分離ストレージは無効になっています。

path の形式が正しくありません。

pathnullです。

path にディレクトリが存在しません。

分離ストアは破棄されています。

注釈

このメソッドは、 コンストラクターを使用することと IsolatedStorageFileStream.IsolatedStorageFileStream(String, FileMode, FileAccess, FileShare, IsolatedStorageFile) 同じです。

適用対象

こちらもご覧ください