我知道大家都常利用 Google 查詢技術文件,尤其經常查閱 MSDN 文件,但各位可能不知道同一份文件在 MSDN 上有好幾個版本,以下圖為例,當我搜尋 HttpUtility 關鍵字時,回應的第一個連結網址有加上 (VS.80) 在上面,這代表這份文件是在 Visual Studio 2005 / .NET Framework 2.0 撰寫的,也代表這並不是最新版的文件!
拿我前幾天寫的【使用 ThreadPool 時應注意預設同時執行的 Thread 數量 】文章來說,當我上 Google 查詢 ThreadPool Class 所得到的結果如下:
如果你不小心點選到 (VS.80) 的版本很可能就會得到過期的資訊:
![There is one thread pool per process. The thread pool has a default size of 25 threads per available processor. The number of threads in the thread pool can be changed using the SetMaxThreads method. Each thread uses the default stack size and runs at the default priority.](/image.axd?picture=WindowsLiveWriter/GoogleMSDN_8E9A/image_13.png)
以下是沒有加上版本的網址 (最新版) 所列的內容:
事實上當你進入 MSDN 文件後,在文件的右上角會出現此文件的各版本可供切換:
以下列出各版本的網址對應表供各位參考:
下次你在查詢資料時可要特別注意你所查詢的文件是否適用於你目前的開發環境喔,如果要查詢「最新版」記得要選網址上沒有加上版本編號的版本。