George George

George George

  • NA
  • 778
  • 0

release resource for WebClient class

Jun 2 2008 8:43 AM

Hello everyone,


I find there is no resource release method for WebClient class, e.g. a method called "Close".

My usage scenario is,

1. Creating a new instance of WebClient;
2. Post byte[] data using UploadData method, and retrieve return data also using byte[].

In my scenario, are there any need to call some methods to release the resource (I suepect there is request stream handle and response stream handle to release)?


thanks in advance,
George


Answers (3)