Skip to content

Commit 4042826

Browse files
committed
fix build warnings and delete corresponding vb snippets
1 parent 301b118 commit 4042826

File tree

8 files changed

+19
-463
lines changed

8 files changed

+19
-463
lines changed

snippets/visualbasic/VS_Snippets_WebNet/System.Web.Configuration.FormsAuthenticationCredentials/VB/formsauthenticationcredentials.vb

Lines changed: 0 additions & 191 deletions
This file was deleted.

snippets/visualbasic/VS_Snippets_WebNet/System.Web.Configuration.FormsAuthenticationUser/VB/formsauthenticationuser.vb

Lines changed: 0 additions & 73 deletions
This file was deleted.

xml/System.Data.SqlClient/SqlConnectionStringBuilder.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151
5252
<xref:System.Data.SqlClient.SqlConnectionStringBuilder> performs checks for valid key/value pairs. Therefore, you cannot use this class to create invalid connection strings; trying to add invalid pairs will throw an exception. The class maintains a fixed collection of synonyms and can translate from a synonym to the corresponding well-known key name.
5353
54-
For example, when you use the `Item` property to retrieve a value, you can specify a string that contains any synonym for the key you need. For example, you can specify "Network Address", "addr", or any other acceptable synonym for this key within a connection string when you use any member that requires a string that contains the key name, such as the <xref:System.Data.SqlClient.SqlConnectionStringBuilder.Item> property or the <xref:System.Data.SqlClient.SqlConnectionStringBuilder.Remove%2A> method. See the <xref:System.Data.SqlClient.SqlConnection.ConnectionString%2A> property for a full list of acceptable synonyms.
54+
For example, when you use the `Item` property to retrieve a value, you can specify a string that contains any synonym for the key you need. For example, you can specify "Network Address", "addr", or any other acceptable synonym for this key within a connection string when you use any member that requires a string that contains the key name, such as the <xref:System.Data.SqlClient.SqlConnectionStringBuilder.Item(System.String)> property or the <xref:System.Data.SqlClient.SqlConnectionStringBuilder.Remove%2A> method. See the <xref:System.Data.SqlClient.SqlConnection.ConnectionString%2A> property for a full list of acceptable synonyms.
5555
56-
The <xref:System.Data.SqlClient.SqlConnectionStringBuilder.Item> property handles attempts to insert malicious entries. For example, the following code, using the default `Item` property (the indexer, in C#) correctly escapes the nested key/value pair:
56+
The <xref:System.Data.SqlClient.SqlConnectionStringBuilder.Item(System.String)> property handles attempts to insert malicious entries. For example, the following code, using the default `Item` property (the indexer, in C#) correctly escapes the nested key/value pair:
5757
5858
```vb
5959
Dim builder As New System.Data.SqlClient.SqlConnectionStringBuilder

xml/System.Web.Configuration/FormsAuthPasswordFormat.xml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,11 @@
1717
<Docs>
1818
<summary>Defines the encryption format for storing passwords.</summary>
1919
<remarks>
20-
<format type="text/markdown"><![CDATA[
21-
22-
## Remarks
23-
To programmatically configure the type of encryption used to store passwords in a Web application, use the <xref:System.Web.Configuration.AuthenticationSection> class. This class is also used internally by <xref:System.Web.Security.FormsAuthentication> in the processing of authentication tickets.
24-
25-
26-
27-
## Examples
28-
The following code example shows how to use the <xref:System.Web.Configuration.FormsAuthPasswordFormat> enumeration. Refer to the code example in the <xref:System.Web.Configuration.FormsAuthenticationUserCollection> class topic to learn how to get the collection.
29-
30-
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.FormsAuthenticationCredentials/CS/formsauthenticationcredentials.cs" id="Snippet3":::
31-
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Web.Configuration.FormsAuthenticationCredentials/VB/formsauthenticationcredentials.vb" id="Snippet3":::
32-
20+
<format type="text/markdown"><![CDATA[
21+
22+
## Remarks
23+
To programmatically configure the type of encryption used to store passwords in a Web application, use the <xref:System.Web.Configuration.AuthenticationSection> class. This class is also used internally by <xref:System.Web.Security.FormsAuthentication> in the processing of authentication tickets.
24+
3325
]]></format>
3426
</remarks>
3527
</Docs>

xml/System.Web.Configuration/FormsAuthenticationCredentials.xml

Lines changed: 3 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,7 @@
5252
<Parameters />
5353
<Docs>
5454
<summary>Initializes a new instance of the <see cref="T:System.Web.Configuration.FormsAuthenticationCredentials" /> class.</summary>
55-
<remarks>
56-
<format type="text/markdown"><![CDATA[
57-
58-
## Examples
59-
The following code example shows how to create a <xref:System.Web.Configuration.FormsAuthenticationCredentials> object.
60-
61-
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.FormsAuthenticationCredentials/CS/formsauthenticationcredentials.cs" id="Snippet2":::
62-
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Web.Configuration.FormsAuthenticationCredentials/VB/formsauthenticationcredentials.vb" id="Snippet2":::
63-
64-
]]></format>
65-
</remarks>
55+
<remarks>To be added.</remarks>
6656
</Docs>
6757
</Member>
6858
<Member MemberName="PasswordFormat">
@@ -90,17 +80,7 @@
9080
<Docs>
9181
<summary>Gets or sets the password format.</summary>
9282
<value>One of the <see cref="T:System.Web.Configuration.FormsAuthPasswordFormat" /> values.</value>
93-
<remarks>
94-
<format type="text/markdown"><![CDATA[
95-
96-
## Examples
97-
The following code example shows how to access the <xref:System.Web.Configuration.FormsAuthenticationCredentials.PasswordFormat%2A> property. Refer to the code example in the <xref:System.Web.Configuration.FormsAuthenticationCredentials> class topic to learn how to get the section.
98-
99-
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.FormsAuthenticationCredentials/CS/formsauthenticationcredentials.cs" id="Snippet3":::
100-
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Web.Configuration.FormsAuthenticationCredentials/VB/formsauthenticationcredentials.vb" id="Snippet3":::
101-
102-
]]></format>
103-
</remarks>
83+
<remarks>To be added.</remarks>
10484
<altmember cref="T:System.Web.Configuration.FormsAuthPasswordFormat" />
10585
</Docs>
10686
</Member>
@@ -157,17 +137,7 @@
157137
<Docs>
158138
<summary>Gets the users' names and password credentials.</summary>
159139
<value>A <see cref="T:System.Web.Configuration.FormsAuthenticationUserCollection" /> that contains the users' names and password credentials.</value>
160-
<remarks>
161-
<format type="text/markdown"><![CDATA[
162-
163-
## Examples
164-
The following code example shows how to use the <xref:System.Web.Configuration.FormsAuthenticationCredentials.Users%2A> property. Refer to the code example in the <xref:System.Web.Configuration.FormsAuthenticationCredentials> class topic to learn how to get the section.
165-
166-
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.FormsAuthenticationCredentials/CS/formsauthenticationcredentials.cs" id="Snippet4":::
167-
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Web.Configuration.FormsAuthenticationCredentials/VB/formsauthenticationcredentials.vb" id="Snippet4":::
168-
169-
]]></format>
170-
</remarks>
140+
<remarks>To be added.</remarks>
171141
<altmember cref="T:System.Web.Configuration.FormsAuthenticationUserCollection" />
172142
<altmember cref="T:System.Web.Configuration.FormsAuthenticationUser" />
173143
</Docs>

0 commit comments

Comments
 (0)