System.IO.IsolatedStorage.IsolatedStorageFileStream.BeginRead C# (CSharp) Méthode

BeginRead() public méthode

public BeginRead ( byte buffer, int offset, int numBytes, System userCallback, object stateObject ) : System.IAsyncResult
buffer byte
offset int
numBytes int
userCallback System
stateObject object
Résultat System.IAsyncResult
        public override System.IAsyncResult BeginRead(byte[] buffer, int offset, int numBytes, System.AsyncCallback userCallback, object stateObject) { throw null; }
        public override System.IAsyncResult BeginWrite(byte[] buffer, int offset, int numBytes, System.AsyncCallback userCallback, object stateObject) { throw null; }

Usage Example

		public void AsyncEndRead_Disposed ()
		{
			IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForApplication ();
			using (IsolatedStorageFileStream fs = new IsolatedStorageFileStream ("moon", FileMode.Create, isf)) {
				byte [] data = new byte [2];
				KeyValuePair<IsolatedStorageFile, IsolatedStorageFileStream> kvp = new KeyValuePair<IsolatedStorageFile, IsolatedStorageFileStream> (isf, fs);
				IAsyncResult result = fs.BeginRead (data, 0, 2, new AsyncCallback (EndReadDisposed), kvp);
				result.AsyncWaitHandle.WaitOne ();
			}
		}
All Usage Examples Of System.IO.IsolatedStorage.IsolatedStorageFileStream::BeginRead