public BeginRead ( byte buffer, int offset, int numBytes, System userCallback, object stateObject ) : System.IAsyncResult | ||
buffer | byte | |
offset | int | |
numBytes | int | |
userCallback | System | |
stateObject | object | |
return | 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; }
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 (); } }