The WebCrawler sample application counts the links on a Web site and all the links that branch from that Web site. After the application has counted all the links, it provides the information shown in the following table.
Statistic | Meaning |
|---|
Link count | The number of links that have been found on all evaluated Web pages. |
Started | The time the application began evaluating Web pages. |
Time | The amount of time the application has been evaluating Web pages. |
This sample is available only in Visual C#.
For information about using the samples, see the following topics:
Download sample
To build the sample using Visual Studio
Open Windows Explorer and navigate to the CS subdirectory of the WebCrawler directory.
Double-click the WebCrawler.sln file to open it in Visual Studio.
Press F5 to compile and run the sample. You will be prompted to select whether to deploy the sample to a Pocket PC or to a Pocket PC emulator.
To run the sample
In the Address box, enter a Web address.
If you want to use the default proxy server, clear the Do not use proxy server check box.
Click Start to begin evaluating the Web page.
Note: |
|---|
Ensure that your proxy server is specified in the Pocket PC connection settings of the device or emulator. |
The .NET Compact Framework is required to build or run the sample. See How to: Install the .NET Compact Framework for installation instructions.
This sample demonstrates making HTTP requests from a Pocket PC. It counts the links that branch from any Web site, and demonstrates how to use regular expressions and events.
Other Resources