System.IO.IsolatedStorage.IsolatedStorageFile.CreateFile C# (CSharp) Method

CreateFile() public method

public CreateFile ( string path ) : IsolatedStorageFileStream
path string
return IsolatedStorageFileStream
        public IsolatedStorageFileStream CreateFile(string path)
        {
            EnsureStoreIsValid();
            return new IsolatedStorageFileStream(path, FileMode.Create, FileAccess.ReadWrite, FileShare.None, this);
        }

Same methods

IsolatedStorageFile::CreateFile ( string path ) : System.IO.IsolatedStorage.IsolatedStorageFileStream

Usage Example

Esempio n. 1
0
 public void CreateFile_RaisesArgumentException()
 {
     using (IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForAssembly())
     {
         AssertExtensions.Throws <ArgumentException>("path", null, () => isf.CreateFile("\0bad"));
     }
 }
All Usage Examples Of System.IO.IsolatedStorage.IsolatedStorageFile::CreateFile