Dela via


Visual Basic Windows Communication Foundation Samples

These samples demonstrate common tasks for Windows Communication Foundation applications.

To access samples from Visual Studio

  1. On the Help menu, click Samples.

  2. In the Samples on Disk section of the readme file, click local Samples folder. By default, the samples are installed in drive:\Program Files\Microsoft Visual Studio 10.0\Samples\1033 or drive:\Program Files (x86)\Microsoft Visual Studio 10.0\Samples\1033.

  3. Right-click the .zip file that contains the samples you want to open and then click Extract All to extract the samples to a folder of your choice.

For the most current samples, go to the Visual Basic Samples Web site.

Security noteSecurity Note

Microsoft provides the included samples "AS IS" with no warranties. The code in the samples is provided just to illustrate concepts. The provided code may not meet security requirements for any specific environment. We recommend that you add security and error-handling code to your projects to make them as secure and robust as you deem appropriate.

Samples

Sample

Description

WCF Chat Sample

Demonstrates how to implement a multiparty chat application by using PeerChannel. Messages sent by any instance of a chat application are received by all other instances.

WCF Predictor Sample

Demonstrates the difference between Active Server Methods (ASMX) and Windows Communication Foundation (WCF) technologies.

WCF Windows Forms Sample

Demonstrates a service that implements a contract that defines a request and reply communication pattern. The sample consists of a client Windows Forms application (.exe) and a Windows Communication Foundation (WCF) service that is hosted by Internet Information Services (IIS).

See Also

Concepts

Windows Communication Foundation Services and WCF Data Services in Visual Studio

Other Resources

Visual Studio 2010 Samples

Visual Basic Sample Applications

Visual Basic Sample Applications