如果发生异常,我如何测试 requestStream 是否已关闭和处置
Try
Using requestStream As Stream = rqst.GetRequestStream()
requestStream.Write(fle, 0, fle.Length)
Throw New ApplicationException("Exception Occured")
End Using
Catch ex As Exception
MessageBox.Show(ex.Message.ToString())
Finally
'test if the requeststream is closed and disposed?
MessageBox.Show("")
End Try