MainPage.xaml.cs
//**************************************************************************
/// <summary>
/// WriteAsync: Task that asynchronously writes data from the input text box 'sendText' to the OutputStream 
/// </summary>
/// <returns></returns>
Task that asynchronously writes data from the input text box 'sendText' to the OutputStream
Task that asynchronously writes data from the input text box ' sendText ' to the OutputStream
private async Task WriteAsync()
        {
            Task<UInt32> storeAsyncTask;
            {
                storeAsyncTask = dataWriteObject.StoreAsync().AsTask();
                UInt32 bytesWritten = await storeAsyncTask;
                if (bytesWritten > 0)
                {
                }
            }
            {
            }
        }
private async Task WriteAsync ( ) { Task < UInt32 > storeAsyncTask ; { storeAsyncTask = dataWriteObject . StoreAsync ( ) . AsTask ( ) ; UInt32 bytesWritten = await storeAsyncTask ; if ( bytesWritten > 0 ) { } } { } }
WriteAsync: Task that asynchronously writes data from the input text box 'sendText' to the OutputStream
WriteAsync : Task that asynchronously writes data from the input text box ' sendText ' to the OutputStream
//if (sendText.Text.Length != 0) // Load the text from the sendText input text box to the dataWriter object //dataWriteObject.WriteString(sendText.Text); // Launch an async task to complete the write operation //status.Text = sendText.Text + ", "; //status.Text += "bytes written successfully!"; //sendText.Text = ""; //else //status.Text = "Enter the text you want to write and then click on 'WRITE'";
None