EndWrite Waits for the pending asynchronous write to complete. This method is always blocking. void EndWrite(IVisaAsyncResult result); The following table reflects the value of the result parameter upon completion of this method. Name Description Type The reference to the asynchronous request. The result IVisaAsyncResult meaning of members after the IVisaAsyncResult call completes is listed below: Unaffected by this method. .AsyncState Object Not specified after this method completes. .AsyncWaitHandle WaitHandle Unaffected by this method. Boolean is always when returned by this true .IsCompleted Boolean IsCompleted method since this method waits until the asynchronous operation ends. Unaffected by this method. .IsAborted Boolean The buffer that was passed into the call to .Buffer Byte[] that initiated this asynchronous BeginWrite operation, or a buffer that includes only the bytes that were actually to be written by this asynchronous operation. The number of bytes actually written by this .Count Int64 operation. Some exceptions (such as argument exceptions) are thrown immediately from this method. In addition, any errors detected during the asynchronous operation will be thrown as exceptions from this method. This method uses the to report a timeout. Ivi.Visa.IoTimeoutException The value returned as part of the return value for this method is the same as Buffer IVisaAsyncResult the value returned as part of the return value for Buffer IVisaAsyncResult BeginWrite().
EndWrite Waits for the pending asynchronous write to complete. This method is always blocking. void EndWrite(IVisaAsyncResult result); The following table reflects the value of the result parameter upon completion of this method. Name Description Type result The reference to the asynchronous request. The meaning of IVisaAsyncResult members after the call completes is listed below: IVisaAsyncResult .AsyncState Unaffected by this method. Object .AsyncWaitHandle Not specified after this method completes. WaitHandle Unaffected by this method. Boolean .IsCompleted IsCompleted is always true when returned by this method since this method waits until the asynchronous operation ends. Boolean .IsAborted Unaffected by this method. Boolean .Buffer The buffer that was passed into the call to BeginWrite that initiated this asynchronous operation, or a buffer that includes only the bytes that were actually to be written by this asynchronous operation. Byte[] .Count The number of bytes actually written by this operation. Int64 Some exceptions (such as argument exceptions) are thrown immediately from this method. In addition, any errors detected during the asynchronous operation will be thrown as exceptions from this method. This method uses the Ivi.Visa.IoTimeoutException to report a timeout. The Buffer value returned as part of the IVisaAsyncResult return value for this method is the same as the Buffer value returned as part of the IVisaAsyncResult return value for BeginWrite().
vpp436_2014-06-19.docx