Dela via


WebCrawler Technology Sample

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:

To build the sample using Visual Studio

  1. Open Windows Explorer and navigate to the CS subdirectory of the WebCrawler directory.

  2. Double-click the WebCrawler.sln file to open it in Visual Studio.

  3. 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

  1. 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.

  2. 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.

Requirements

The .NET Compact Framework is required to build or run the sample. See How to: Install the .NET Compact Framework for installation instructions.

Demonstrates

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.

See Also

Other Resources

.NET Compact Framework