Skip to content

Reorganize 'Data' VB snippets #11535

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 9 additions & 9 deletions xml/System.Xml/XmlAttribute.xml
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@
The following example displays information on the attribute node, including its base URI.

:::code language="csharp" source="~/snippets/csharp/System.Xml/XmlAttribute/BaseURI/source.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Data/Classic WebData XmlAttribute.BaseURI Example/VB/source.vb" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/System.Xml/XmlAttribute/BaseURI/source.vb" id="Snippet1":::

The sample uses the file, `baseuri.xml`, as input.

Expand Down Expand Up @@ -354,7 +354,7 @@
The following example uses `CloneNode` to add an attribute to two different element nodes.

:::code language="csharp" source="~/snippets/csharp/System.Xml/XmlAttribute/CloneNode/source.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Data/Classic WebData XmlAttribute.CloneNode Example/VB/source.vb" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/System.Xml/XmlAttribute/CloneNode/source.vb" id="Snippet1":::

The example uses the file, `2elems.xml`, as input.

Expand Down Expand Up @@ -703,7 +703,7 @@
The following example displays information on each of the nodes in the attribute collection.

:::code language="csharp" source="~/snippets/csharp/System.Xml/XmlAttribute/LocalName/source.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Data/Classic WebData XmlAttribute.NamespaceURI Example/VB/source.vb" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/System.Xml/XmlAttribute/LocalName/source.vb" id="Snippet1":::

]]></format>
</remarks>
Expand Down Expand Up @@ -759,7 +759,7 @@
The following example displays information on each of the nodes in the attribute collection.

:::code language="csharp" source="~/snippets/csharp/System.Xml/XmlAttribute/Name/source.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Data/Classic WebData XmlAttribute.Name Example/VB/source.vb" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/System.Xml/XmlAttribute/Name/source.vb" id="Snippet1":::

]]></format>
</remarks>
Expand Down Expand Up @@ -821,7 +821,7 @@
The following example displays information on each of the nodes in the attribute collection.

:::code language="csharp" source="~/snippets/csharp/System.Xml/XmlAttribute/LocalName/source.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Data/Classic WebData XmlAttribute.NamespaceURI Example/VB/source.vb" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/System.Xml/XmlAttribute/LocalName/source.vb" id="Snippet1":::

]]></format>
</remarks>
Expand Down Expand Up @@ -924,7 +924,7 @@
The following example creates an attribute and displays its `OwnerDocument`.

:::code language="csharp" source="~/snippets/csharp/System.Xml/XmlAttribute/OwnerDocument/source.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Data/Classic WebData XmlAttribute.OwnerDocument Example/VB/source.vb" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/System.Xml/XmlAttribute/OwnerDocument/source.vb" id="Snippet1":::

]]></format>
</remarks>
Expand Down Expand Up @@ -987,7 +987,7 @@
The following example creates an attribute and displays the `OwnerElement` of the attribute.

:::code language="csharp" source="~/snippets/csharp/System.Xml/XmlAttribute/OwnerElement/source.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Data/Classic WebData XmlAttribute.OwnerElement Example/VB/source.vb" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/System.Xml/XmlAttribute/OwnerElement/source.vb" id="Snippet1":::

]]></format>
</remarks>
Expand Down Expand Up @@ -1108,7 +1108,7 @@
The following example displays information on each of the nodes in the attribute collection.

:::code language="csharp" source="~/snippets/csharp/System.Xml/XmlAttribute/LocalName/source.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Data/Classic WebData XmlAttribute.NamespaceURI Example/VB/source.vb" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/System.Xml/XmlAttribute/LocalName/source.vb" id="Snippet1":::

]]></format>
</remarks>
Expand Down Expand Up @@ -1496,7 +1496,7 @@
The following example displays information on each of the nodes in the attribute collection.

:::code language="csharp" source="~/snippets/csharp/System.Xml/XmlAttribute/LocalName/source.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Data/Classic WebData XmlAttribute.NamespaceURI Example/VB/source.vb" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/System.Xml/XmlAttribute/LocalName/source.vb" id="Snippet1":::

]]></format>
</remarks>
Expand Down
22 changes: 11 additions & 11 deletions xml/System.Xml/XmlAttributeCollection.xml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
The following example adds a new attribute to a document.

:::code language="csharp" source="~/snippets/csharp/System.Xml/XmlAttributeCollection/Append/source.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Data/Classic WebData XmlAttributeCollection.Append Example/VB/source.vb" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/System.Xml/XmlAttributeCollection/Append/source.vb" id="Snippet1":::

]]></format>
</remarks>
Expand Down Expand Up @@ -223,7 +223,7 @@
The following example uses `CopyTo` to copy all the attributes in the collection into an array.

:::code language="csharp" source="~/snippets/csharp/System.Xml/XmlAttributeCollection/CopyTo/source.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Data/Classic WebData XmlAttributeCollection.CopyTo Example/VB/source.vb" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/System.Xml/XmlAttributeCollection/CopyTo/source.vb" id="Snippet1":::

]]></format>
</remarks>
Expand Down Expand Up @@ -305,7 +305,7 @@
The following example adds a new attribute to a document.

:::code language="csharp" source="~/snippets/csharp/System.Xml/XmlAttributeCollection/InsertAfter/source.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Data/Classic WebData XmlAttributeCollection.InsertAfter Example/VB/source.vb" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/System.Xml/XmlAttributeCollection/InsertAfter/source.vb" id="Snippet1":::

]]></format>
</remarks>
Expand Down Expand Up @@ -388,7 +388,7 @@
The following example adds a new attribute to a document.

:::code language="csharp" source="~/snippets/csharp/System.Xml/XmlAttributeCollection/InsertBefore/source.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Data/Classic WebData XmlAttributeCollection.InsertBefore Example/VB/source.vb" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/System.Xml/XmlAttributeCollection/InsertBefore/source.vb" id="Snippet1":::

]]></format>
</remarks>
Expand Down Expand Up @@ -466,7 +466,7 @@
The following example displays all the attributes in the collection.

:::code language="csharp" source="~/snippets/csharp/System.Xml/XmlAttributeCollection/ItemOf/source1.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Data/Classic WebData XmlAttributeCollection.this Example/VB/source.vb" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/System.Xml/XmlAttributeCollection/ItemOf/source1.vb" id="Snippet1":::

]]></format>
</remarks>
Expand Down Expand Up @@ -543,7 +543,7 @@
The following example removes an attribute from the document.

:::code language="csharp" source="~/snippets/csharp/System.Xml/XmlAttributeCollection/ItemOf/source.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Data/Classic WebData XmlAttributeCollection.Remove Example/VB/source.vb" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/System.Xml/XmlAttributeCollection/ItemOf/source.vb" id="Snippet1":::

]]></format>
</remarks>
Expand Down Expand Up @@ -691,7 +691,7 @@
The following example adds a new attribute to a document.

:::code language="csharp" source="~/snippets/csharp/System.Xml/XmlAttributeCollection/Prepend/source.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Data/Classic WebData XmlAttributeCollection.Prepend Example/VB/source.vb" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/System.Xml/XmlAttributeCollection/Prepend/source.vb" id="Snippet1":::

]]></format>
</remarks>
Expand Down Expand Up @@ -762,7 +762,7 @@
The following example removes an attribute from the document.

:::code language="csharp" source="~/snippets/csharp/System.Xml/XmlAttributeCollection/ItemOf/source.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Data/Classic WebData XmlAttributeCollection.Remove Example/VB/source.vb" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/System.Xml/XmlAttributeCollection/ItemOf/source.vb" id="Snippet1":::

]]></format>
</remarks>
Expand Down Expand Up @@ -828,7 +828,7 @@
The following example removes all attributes from the document.

:::code language="csharp" source="~/snippets/csharp/System.Xml/XmlAttributeCollection/RemoveAll/source.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Data/Classic WebData XmlAttributeCollection.RemoveAll Example/VB/source.vb" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/System.Xml/XmlAttributeCollection/RemoveAll/source.vb" id="Snippet1":::

]]></format>
</remarks>
Expand Down Expand Up @@ -899,7 +899,7 @@
The following example removes an attribute from the document.

:::code language="csharp" source="~/snippets/csharp/System.Xml/XmlAttributeCollection/RemoveAt/source.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Data/Classic WebData XmlAttributeCollection.RemoveAt Example/VB/source.vb" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/System.Xml/XmlAttributeCollection/RemoveAt/source.vb" id="Snippet1":::

]]></format>
</remarks>
Expand Down Expand Up @@ -960,7 +960,7 @@
The following example adds a new attribute to a document.

:::code language="csharp" source="~/snippets/csharp/System.Xml/XmlAttributeCollection/SetNamedItem/source.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Data/Classic WebData XmlAttributeCollection.SetNamedItem Example/VB/source.vb" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/System.Xml/XmlAttributeCollection/SetNamedItem/source.vb" id="Snippet1":::

]]></format>
</remarks>
Expand Down
6 changes: 3 additions & 3 deletions xml/System.Xml/XmlConvert.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2234,7 +2234,7 @@
The following example, converts data types to string and then writes the information out to the console.

:::code language="csharp" source="~/snippets/csharp/System.Xml/XmlConvert/ToString/source.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Data/Classic WebData XmlConvert.ToString Example/VB/source.vb" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/System.Xml/XmlConvert/ToString/source.vb" id="Snippet1":::

]]></format>
</remarks>
Expand Down Expand Up @@ -2342,7 +2342,7 @@
The following example, converts data types to string and then writes the information out to the console.

:::code language="csharp" source="~/snippets/csharp/System.Xml/XmlConvert/ToString/source.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Data/Classic WebData XmlConvert.ToString Example/VB/source.vb" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/System.Xml/XmlConvert/ToString/source.vb" id="Snippet1":::

]]></format>
</remarks>
Expand Down Expand Up @@ -2822,7 +2822,7 @@
The following example, converts data types to string and then writes the information out to the console.

:::code language="csharp" source="~/snippets/csharp/System.Xml/XmlConvert/ToString/source.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Data/Classic WebData XmlConvert.ToString Example/VB/source.vb" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/System.Xml/XmlConvert/ToString/source.vb" id="Snippet1":::

]]></format>
</remarks>
Expand Down
4 changes: 2 additions & 2 deletions xml/System.Xml/XmlDeclaration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@
The following example creates an `XmlDeclaration` node and adds it to an XML document.

:::code language="csharp" source="~/snippets/csharp/System.Xml/XmlDeclaration/Encoding/source.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Data/Classic WebData XmlDeclaration.Encoding Example/VB/source.vb" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/System.Xml/XmlDeclaration/Encoding/source.vb" id="Snippet1":::

]]></format>
</remarks>
Expand Down Expand Up @@ -543,7 +543,7 @@
The following example creates an `XmlDeclaration` node and adds it to an XML document.

:::code language="csharp" source="~/snippets/csharp/System.Xml/XmlDeclaration/Standalone/source.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Data/Classic WebData XmlDeclaration.Standalone Example/VB/source.vb" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/System.Xml/XmlDeclaration/Standalone/source.vb" id="Snippet1":::

]]></format>
</remarks>
Expand Down
8 changes: 4 additions & 4 deletions xml/System.Xml/XmlDocument.xml
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ The example uses the `bookDTD.xml` file as input.
The following example shows the difference between a deep and shallow clone.

[!code-csharp[Classic WebData XmlDocument.CloneNode Example#1](~/snippets/csharp/System.Xml/XmlDocument/CloneNode/source.cs#1)]
[!code-vb[Classic WebData XmlDocument.CloneNode Example#1](~/snippets/visualbasic/VS_Snippets_Data/Classic WebData XmlDocument.CloneNode Example/VB/source.vb#1)]
[!code-vb[Classic WebData XmlDocument.CloneNode Example#1](~/snippets/visualbasic/System.Xml/XmlDocument/CloneNode/source.vb#1)]

]]></format>
</remarks>
Expand Down Expand Up @@ -424,7 +424,7 @@ The following example shows the difference between a deep and shallow clone.
The following creates an attribute and adds it to an XML document.

[!code-csharp[Classic WebData XmlDocument.CreateAttribute Example#1](~/snippets/csharp/System.Xml/XmlDocument/CreateAttribute/source.cs#1)]
[!code-vb[Classic WebData XmlDocument.CreateAttribute Example#1](~/snippets/visualbasic/VS_Snippets_Data/Classic WebData XmlDocument.CreateAttribute Example/VB/source.vb#1)]
[!code-vb[Classic WebData XmlDocument.CreateAttribute Example#1](~/snippets/visualbasic/System.Xml/XmlDocument/CreateAttribute/source.vb#1)]

]]></format>
</remarks>
Expand Down Expand Up @@ -649,7 +649,7 @@ The following creates an attribute and adds it to an XML document.
The following example creates a CDATA node and adds it to the document.

[!code-csharp[Classic WebData XmlDocument.CreateCDataSection Example#1](~/snippets/csharp/System.Xml/XmlDocument/CreateCDataSection/source.cs#1)]
[!code-vb[Classic WebData XmlDocument.CreateCDataSection Example#1](~/snippets/visualbasic/VS_Snippets_Data/Classic WebData XmlDocument.CreateCDataSection Example/VB/source.vb#1)]
[!code-vb[Classic WebData XmlDocument.CreateCDataSection Example#1](~/snippets/visualbasic/System.Xml/XmlDocument/CreateCDataSection/source.vb#1)]

]]></format>
</remarks>
Expand Down Expand Up @@ -723,7 +723,7 @@ The following example creates a CDATA node and adds it to the document.
The following example creates a comment and adds it to an XML document.

[!code-csharp[Classic WebData XmlDocument.CreateComment Example#1](~/snippets/csharp/System.Xml/XmlDocument/CreateComment/source.cs#1)]
[!code-vb[Classic WebData XmlDocument.CreateComment Example#1](~/snippets/visualbasic/VS_Snippets_Data/Classic WebData XmlDocument.CreateComment Example/VB/source.vb#1)]
[!code-vb[Classic WebData XmlDocument.CreateComment Example#1](~/snippets/visualbasic/System.Xml/XmlDocument/CreateComment/source.vb#1)]

]]></format>
</remarks>
Expand Down