Skip to content

Commit 4bd13b4

Browse files
committed
Edits
1 parent 233f5e7 commit 4bd13b4

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

docs/data-tools/walkthrough-creating-a-simple-wcf-service-in-windows-forms.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ This walkthrough demonstrates how to create a Windows Communication Foundation (
3030

3131
[Visual Studio](https://visualstudio.microsoft.com/downloads/?cid=learn-onpage-download-cta) with the **Windows Communication Foundation** component installed. To install it:
3232

33-
1. Open **Visual Studio Installer** or select **Tools** > **Get Tools and Features** from the menu.
33+
1. Open the **Visual Studio Installer** app, or select **Tools** > **Get Tools and Features** from the Visual Studio menu.
3434
1. In **Visual Studio Installer**, choose **Modify** next to the version of Visual Studio you want to modify.
3535
1. Select the **Individual components** tab, and then choose **Windows Communication Foundation** under **Development activities**.
3636
1. Select **Modify**.
@@ -70,7 +70,9 @@ To create a WCF service in Visual Studio, follow these steps:
7070

7171
---
7272

73-
6. Change the type for the `value` parameter to string, as follows:
73+
6. Change the type for the `value` parameter to string.
74+
75+
In this code example, note the `OperationContract` attribute. This attribute is required for any method exposed by the service.
7476

7577
### [C#](#tab/csharp)
7678

@@ -80,8 +82,6 @@ To create a WCF service in Visual Studio, follow these steps:
8082

8183
:::code language="vb" source="../snippets/visualbasic/VS_Snippets_VBCSharp/wcfwalkthrough/vb/iservice1.vb" id="Snippet1":::
8284

83-
In this code example, note the `OperationContract` attribute. This attribute is required for any method exposed by the service.
84-
8585
---
8686

8787
7. In Solution Explorer, double-click **Service1.cs** or **Service1.vb**.
@@ -140,7 +140,7 @@ To test the WCF service you created, follow these steps:
140140

141141
## Access the WCF service
142142

143-
Now that you created and tested the WCF service, you can reference it from a project and use it to build a client application.
143+
After you create and test the WCF service, you can reference it from a project and use it to build a client application.
144144

145145
### Reference the WCF service
146146

@@ -164,11 +164,13 @@ To reference the WCF service from a project, follow these steps:
164164

165165
### Build a client application
166166

167-
1. In Solution Explorer, depending on which type of project you created, double-click **Form1.cs**, or **Form1.vb**, in the Windows Forms app.
167+
To use a WCF service reference to build a client application, follow these steps.
168+
169+
1. In Solution Explorer, double-click **Form1.cs** or **Form1.vb** in the Windows Forms app.
168170

169171
The form opens in Windows Forms Designer.
170172

171-
1. Open the **Toolbox** by selecting **View** > **Toolbox** from the menu, or press **Ctrl**+**Alt**+**X** on the keyboard.
173+
1. Open the **Toolbox** by selecting **View** > **Toolbox** from the menu, or press **Ctrl**+**Alt**+**X** from the keyboard.
172174

173175
1. From the **Toolbox**, drag a **TextBox** control, a **Label** control, and a **Button** control onto the form.
174176

@@ -188,7 +190,7 @@ To reference the WCF service from a project, follow these steps:
188190

189191
1. In Solution Explorer, right-click the project node (for example, **WindowsFormsApp1**), and select **Set as StartUp Project**.
190192

191-
1. Press **F5** to run the project. Enter some text and select the button. The label displays **You entered:** followed by the text that you entered.
193+
1. Press **F5** to run the project. Enter some text and select the button. The label displays **You entered:**, followed by your text.
192194

193195
:::image type="content" alt-text="Screenshot that shows the result displayed in the running client application form." source="../data-tools/media/vs-2022/windows-forms-app.png":::
194196

0 commit comments

Comments
 (0)