Skip to content

Commit 68ff68a

Browse files
mairawbartonjs
andauthored
add missing space - Part 2 (#4128)
* add missing space * more fixes * remove extra space * more fixes * remove extra spaces * extra fix * extra fix * few more fixes * remove extra spaces * more fixes * more fixes * more fixes * more fixes * add missing space * Apply suggestions from code review Co-Authored-By: Jeremy Barton <[email protected]> * fix typo * Update httpwebrequest_connection.vb * Update httpwebrequest_contentlength.vb * Update networkcredential_username_password_domain.vb * Update operationbinding_operationbinding.vb * Update servicecollection_item.vb * Update icredential.vb * Update httpwebrequest_pipelined.vb * Update httpwebrequest_referer.vb * Update operationmessagecollection_sample.vb * Update portcollection_item.vb * Update webrequest_contenttype.vb * Update xmlattributeattribute_ctr1_2.vb * Update httputility_htmldecode.vb * Update listitemcollection_addrange.vb.aspx * Update listitemcollection_addrange.vb.aspx * Update datagridtablestyle_header_4.vb * Update samples/snippets/visualbasic/VS_Snippets_Remoting/BindingCollectionSample2/VB/bindingcollectionsample2.vb Co-Authored-By: Jeremy Barton <[email protected]> Co-authored-by: Jeremy Barton <[email protected]>
1 parent b0954d3 commit 68ff68a

File tree

100 files changed

+300
-298
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+300
-298
lines changed

samples/snippets/csharp/VS_Snippets_Remoting/ServiceDescription_Constructor_4/CS/servicedescription_constructor_4.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/*
77
The following example demonstrates the constructor 'ServiceDescription()',
88
properties 'Messages', 'Name' and 'Read' method of 'ServiceDescription'
9-
class.The input to the program is a WSDL file 'MyWsdl.wsdl'.
9+
class. The input to the program is a WSDL file 'MyWsdl.wsdl'.
1010
This program removes one message from the existing WSDL.
1111
A new Message is defined and added to the ServiceDescription.
1212
A new wsdl with modified ServiceDescription is written in 'MyOutWsdl.wsdl'.
Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
// System.Web.Services.Description.ServiceDescription.Namespace
2-
/*
3-
The following example demonstrates 'Namespace' property of 'ServiceDescription' class.The input to the program is a
4-
WSDL file 'MyWsdl.wsdl'. This program displays the Namespace of 'ServiceDescription' class.
5-
*/
6-
using System;
7-
using System.Web.Services;
8-
using System.Web.Services.Description;
9-
10-
namespace ServiceDescription1
11-
{
12-
class MyService
13-
{
14-
static void Main()
15-
{
16-
try
17-
{
18-
// <Snippet1>
19-
ServiceDescription myDescription =
20-
ServiceDescription.Read("MyWsdl_CS.wsdl");
21-
Console.WriteLine("Namespace: " + ServiceDescription.Namespace);
22-
// </Snippet1>
23-
}
24-
catch(Exception e)
25-
{
26-
Console.WriteLine("Exception: " + e.Message);
27-
}
28-
}
29-
}
30-
}
1+
// System.Web.Services.Description.ServiceDescription.Namespace
2+
/*
3+
The following example demonstrates the 'Namespace' property of 'ServiceDescription' class. The input to the program is a
4+
WSDL file 'MyWsdl.wsdl'. This program displays the Namespace of 'ServiceDescription' class.
5+
*/
6+
using System;
7+
using System.Web.Services;
8+
using System.Web.Services.Description;
9+
10+
namespace ServiceDescription1
11+
{
12+
class MyService
13+
{
14+
static void Main()
15+
{
16+
try
17+
{
18+
// <Snippet1>
19+
ServiceDescription myDescription =
20+
ServiceDescription.Read("MyWsdl_CS.wsdl");
21+
Console.WriteLine("Namespace: " + ServiceDescription.Namespace);
22+
// </Snippet1>
23+
}
24+
catch(Exception e)
25+
{
26+
Console.WriteLine("Exception: " + e.Message);
27+
}
28+
}
29+
}
30+
}

samples/snippets/csharp/VS_Snippets_Remoting/SinkProviderData/CS/sinkproviderdata_ipfiltersink.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// System.Runtime.Remoting.Channels.SinkProviderData.Properties
55

66
/* The following program demonstrates the SinkProviderData class and its properties
7-
'Children', 'Name', 'Properties'.The IP filter sink may be set up to be in accept
7+
'Children', 'Name', 'Properties'. The IP filter sink may be set up to be in accept
88
or reject mode. In accept mode, the sink will only accept requests from ip addresses
99
that matches one of the filters. In reject mode, the sink will reject requests from
1010
any ip address that matches one of the filters. The properties of the SinkProviderData

samples/snippets/csharp/VS_Snippets_Remoting/WebClient_UpLoadFile/CS/webclient_uploadfile.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static void Main()
3737
byte[] responseArray = myWebClient.UploadFile(uriString,fileName);
3838

3939
// Decode and display the response.
40-
Console.WriteLine("\nResponse Received.The contents of the file uploaded are:\n{0}",
40+
Console.WriteLine("\nResponse Received. The contents of the file uploaded are:\n{0}",
4141
System.Text.Encoding.ASCII.GetString(responseArray));
4242
// </Snippet1>
4343
}

samples/snippets/csharp/VS_Snippets_Remoting/WebClient_UpLoadFile2/CS/webclient_uploadfile2.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static void Main()
3636
byte[] responseArray = myWebClient.UploadFile(uriString,"POST",fileName);
3737

3838
// Decode and display the response.
39-
Console.WriteLine("\nResponse Received.The contents of the file uploaded are:\n{0}",
39+
Console.WriteLine("\nResponse Received. The contents of the file uploaded are:\n{0}",
4040
System.Text.Encoding.ASCII.GetString(responseArray));
4141

4242
// </Snippet1>

samples/snippets/csharp/VS_Snippets_Remoting/WebRequest_BeginGetRequest/CS/webrequest_begingetrequest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/* System.Net.WebRequest.BeginGetRequestStream System.Net.WebRequest.EndGetRequestStream System.Net.WebRequest.Method
22
This program demonstrates 'BeginGetRequestStream','EndGetRequestStream' methods and 'Method' property of
33
'WebRequest' class.
4-
A new 'WebRequest' object is created .The method property of the 'WebRequest' object is set to POST. An
4+
A new 'WebRequest' object is created. The method property of the 'WebRequest' object is set to POST. An
55
asynchronous request for writing data is started using the 'BeginGetRequestStream' method of 'WebRequest'
6-
class.A 'Stream' object is obtained using the 'EndGetRequestStream' method in the callback function. The
7-
stream object is used to write the requested data to the mentioned uri. After data writing is over the
6+
class. A 'Stream' object is obtained using the 'EndGetRequestStream' method in the callback function. The
7+
stream object is used to write the requested data to the mentioned uri. After data writing is over the
88
same data is read from the same Uri and printed on the console.
99
1010
Note: This program POSTs data to the Uri: http://www20.Brinkster.com/codesnippets/next.asp

samples/snippets/csharp/VS_Snippets_Remoting/WebRequest_ContentType/CS/webrequest_contenttype.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
This program demonstrates 'GetRequestStream' method , 'ContentLength' and 'ContentType' properties of
33
'WebRequestClass'.
44
A new 'WebRequest' object is created and the method used for sending data is set to 'POST' method by setting
5-
The 'Method' property to 'POST'.The 'ContentType' property is set to 'application/x-www-form-urlencoded'.
5+
The 'Method' property to 'POST'. The 'ContentType' property is set to 'application/x-www-form-urlencoded'.
66
The 'ContentLength' property is set to the length of the Byte stream to be posted. A new 'Stream' object is
77
obtained from the 'GetRequestStream' method of the 'WebRequest' class.Data to be posted is requested from
8-
the user and is posted using the stream object.The HTML contents of the page are then displayed to the
8+
the user and is posted using the stream object. The HTML contents of the page are then displayed to the
99
console after the Posted data is accepted by the URL.
1010
1111
Note: This program POSTs data to the Uri: http://www20.Brinkster.com/codesnippets/next.asp

samples/snippets/csharp/VS_Snippets_Remoting/WebRequest_Headers/CS/webrequest_headers.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*System.Net.WebRequest.Headers
22
* This program demonstrates the 'Headers' property of 'WebRequest' Class.
3-
A new 'WebRequest' object is created.The (name,value) collection of the HTTP Headers are displayed to the
4-
console.The contents of the HTML page of the requested URI are displayed to the console. */
3+
A new 'WebRequest' object is created. The (name,value) collection of the HTTP Headers are displayed to the
4+
console. The contents of the HTML page of the requested URI are displayed to the console. */
55

66
using System;
77
using System.IO;

samples/snippets/csharp/VS_Snippets_Remoting/WebRequest_Timeout/CS/webrequest_timeout.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*System.Net.WebRequest.Timeout
22
* This program demonstrates the 'Timeout' property of the WebRequest Class.
3-
A new 'WebRequest' object is created .The default value of the 'Timeout' property is printed to the console.
3+
A new 'WebRequest' object is created . The default value of the 'Timeout' property is printed to the console.
44
It is then set to a value and displayed to the console. If the 'Timeout' property is set to a value less than
55
the time required to get the response an Exception is raised.'Timeout' property measures the time in
66
Milliseconds.*/

samples/snippets/csharp/VS_Snippets_Remoting/XMLAttributeAttribute_ctr1_2/CS/xmlattributeattribute_ctr1_2.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// System.Xml.Serialization.XmlAttributeAttribute.XmlAttributeAttribute(String)
33

44
/* The following example demonstrates the constructor of XmlAttributeAttribute .
5-
* This sample serializes a class named 'Student'.The StudentName property is
5+
* This sample serializes a class named 'Student'. The StudentName property is
66
* serialized as an XML attribute.It also serializes a class named 'Book'
77
*/
88
// <Snippet1>

0 commit comments

Comments
 (0)