Skip to content

Commit 3c82b5d

Browse files
Merge pull request #11432 from dotnet/main
Merge main into live
2 parents 7e938b1 + fc62609 commit 3c82b5d

File tree

1,952 files changed

+187803
-187798
lines changed

Some content is hidden

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

1,952 files changed

+187803
-187798
lines changed

snippets/csharp/System/ThreadStaticAttribute/Overview/threadsafe2a.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ static void Main()
2323

2424
static void ProcessRequest(object? requestId)
2525
{
26-
// Assign the request ID to the thread-static field
26+
// Assign the request ID to the thread-static field.
2727
_requestId = requestId as string;
2828

29-
// Simulate request processing across multiple method calls
29+
// Simulate request processing across multiple method calls.
3030
PerformDatabaseOperation();
3131
PerformLogging();
3232
}

xml/Microsoft.JScript/Typeof.xml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -52,27 +52,27 @@
5252
<summary>Determines the data type of the specified object.</summary>
5353
<returns>The type of <paramref name="value" />.</returns>
5454
<remarks>
55-
<format type="text/markdown"><![CDATA[
56-
57-
## Remarks
58-
The return value can be one of the following string literals:
59-
60-
- boolean
61-
62-
- date
63-
64-
- function
65-
66-
- number
67-
68-
- object
69-
70-
- string
71-
72-
- undefined
73-
74-
- unknown
75-
55+
<format type="text/markdown"><![CDATA[
56+
57+
## Remarks
58+
The return value can be one of the following string literals:
59+
60+
- boolean
61+
62+
- date
63+
64+
- function
65+
66+
- number
67+
68+
- object
69+
70+
- string
71+
72+
- undefined
73+
74+
- unknown
75+
7676
]]></format>
7777
</remarks>
7878
<forInternalUseOnly />

xml/Microsoft.SqlServer.Server/SqlUserDefinedTypeAttribute.xml

Lines changed: 81 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,19 @@
3838
<Docs>
3939
<summary>Used to mark a type definition in an assembly as a user-defined type (UDT) in SQL Server. The properties on the attribute reflect the physical characteristics used when the type is registered with SQL Server. This class cannot be inherited.</summary>
4040
<remarks>
41-
<format type="text/markdown"><![CDATA[
42-
43-
## Remarks
44-
SQL Server creates a user-defined type that is bound to the type definition that has the <xref:Microsoft.SqlServer.Server.SqlUserDefinedTypeAttribute> custom attribute. Every UDT must be annotated with this attribute. See [CLR User-Defined Types](https://go.microsoft.com/fwlink/?LinkId=128028) for more information about UDTs, including an example of a UDT.
45-
46-
47-
48-
## Examples
49-
The following example shows the `UserDefinedType` attribute of the Point UDT. The UDT is byte-ordered, is named "Point", has a validation method named "ValidatePoint", and uses the native serialization format.
50-
41+
<format type="text/markdown"><![CDATA[
42+
43+
## Remarks
44+
SQL Server creates a user-defined type that is bound to the type definition that has the <xref:Microsoft.SqlServer.Server.SqlUserDefinedTypeAttribute> custom attribute. Every UDT must be annotated with this attribute. See [CLR User-Defined Types](https://go.microsoft.com/fwlink/?LinkId=128028) for more information about UDTs, including an example of a UDT.
45+
46+
47+
48+
## Examples
49+
The following example shows the `UserDefinedType` attribute of the Point UDT. The UDT is byte-ordered, is named "Point", has a validation method named "ValidatePoint", and uses the native serialization format.
50+
5151
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlUserDefinedTypeAttribute Example/CS/source.cs" id="Snippet1":::
52-
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_ADO.NET/DataWorks SqlUserDefinedTypeAttribute Example/VB/source.vb" id="Snippet1":::
53-
52+
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_ADO.NET/DataWorks SqlUserDefinedTypeAttribute Example/VB/source.vb" id="Snippet1":::
53+
5454
]]></format>
5555
</remarks>
5656
</Docs>
@@ -79,17 +79,17 @@
7979
<param name="format">One of the <see cref="T:Microsoft.SqlServer.Server.Format" /> values representing the serialization format of the type.</param>
8080
<summary>A required attribute on a user-defined type (UDT), used to confirm that the given type is a UDT and to indicate the storage format of the UDT.</summary>
8181
<remarks>
82-
<format type="text/markdown"><![CDATA[
83-
84-
## Remarks
85-
The following example specifies that the `Format` of the user-defined type is `SerializedDataWithMetadata` and the `MaxByteSize` is 8000 bytes.
86-
87-
88-
89-
## Examples
82+
<format type="text/markdown"><![CDATA[
83+
84+
## Remarks
85+
The following example specifies that the `Format` of the user-defined type is `SerializedDataWithMetadata` and the `MaxByteSize` is 8000 bytes.
86+
87+
88+
89+
## Examples
9090
:::code language="csharp" source="~/snippets/csharp/Microsoft.SqlServer.Server/SqlUserDefinedTypeAttribute/Type1.cs" id="Snippet12":::
91-
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_VBCSharp/VbRaddataSQLObjects/VB/Type1.vb" id="Snippet12":::
92-
91+
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_VBCSharp/VbRaddataSQLObjects/VB/Type1.vb" id="Snippet12":::
92+
9393
]]></format>
9494
</remarks>
9595
</Docs>
@@ -145,37 +145,37 @@
145145
<value>
146146
<see langword="true" /> if the user-defined type is byte ordered; otherwise <see langword="false" />.</value>
147147
<remarks>
148-
<format type="text/markdown"><![CDATA[
149-
150-
## Remarks
151-
When set to `true`, the <xref:Microsoft.SqlServer.Server.SqlUserDefinedTypeAttribute.IsByteOrdered%2A> property in effect guarantees that the serialized binary data can be used for semantic ordering of the information. Thus, each instance of a byte-ordered UDT object can only have one serialized representation. When a comparison operation is performed in SQL Server on the serialized bytes, its results should be the same as if the same comparison operation had taken place in managed code.
152-
153-
The following features are supported when <xref:Microsoft.SqlServer.Server.SqlUserDefinedTypeAttribute.IsByteOrdered%2A> is set to `true`:
154-
155-
- The ability to create indexes on columns of this type.
156-
157-
- The ability to create primary and foreign keys as well as CHECK and UNIQUE constraints on columns of this type.
158-
159-
- The ability to use Transact-SQL ORDER BY, GROUP BY, and PARTITION BY clauses. In these cases, the binary representation of the type is used to determine the order.
160-
161-
- The ability to use comparison operators in Transact-SQL statements.
162-
163-
- The ability to persist computed columns of this type.
164-
165-
Note that both the `Native` and `UserDefined` serialization formats support the following comparison operators when <xref:Microsoft.SqlServer.Server.SqlUserDefinedTypeAttribute.IsByteOrdered%2A> is set to `true`:
166-
167-
- Equal to (=)
168-
169-
- Not equal to (!=)
170-
171-
- Greater than (>)
172-
173-
- Less than (\<)
174-
175-
- Greater than or equal to (>=)
176-
177-
- Less than or equal to (<=)
178-
148+
<format type="text/markdown"><![CDATA[
149+
150+
## Remarks
151+
When set to `true`, the <xref:Microsoft.SqlServer.Server.SqlUserDefinedTypeAttribute.IsByteOrdered%2A> property in effect guarantees that the serialized binary data can be used for semantic ordering of the information. Thus, each instance of a byte-ordered UDT object can only have one serialized representation. When a comparison operation is performed in SQL Server on the serialized bytes, its results should be the same as if the same comparison operation had taken place in managed code.
152+
153+
The following features are supported when <xref:Microsoft.SqlServer.Server.SqlUserDefinedTypeAttribute.IsByteOrdered%2A> is set to `true`:
154+
155+
- The ability to create indexes on columns of this type.
156+
157+
- The ability to create primary and foreign keys as well as CHECK and UNIQUE constraints on columns of this type.
158+
159+
- The ability to use Transact-SQL ORDER BY, GROUP BY, and PARTITION BY clauses. In these cases, the binary representation of the type is used to determine the order.
160+
161+
- The ability to use comparison operators in Transact-SQL statements.
162+
163+
- The ability to persist computed columns of this type.
164+
165+
Note that both the `Native` and `UserDefined` serialization formats support the following comparison operators when <xref:Microsoft.SqlServer.Server.SqlUserDefinedTypeAttribute.IsByteOrdered%2A> is set to `true`:
166+
167+
- Equal to (=)
168+
169+
- Not equal to (!=)
170+
171+
- Greater than (>)
172+
173+
- Less than (\<)
174+
175+
- Greater than or equal to (>=)
176+
177+
- Less than or equal to (<=)
178+
179179
]]></format>
180180
</remarks>
181181
</Docs>
@@ -205,11 +205,11 @@
205205
<value>
206206
<see langword="true" /> if all instances of this type are the same length; otherwise <see langword="false" />.</value>
207207
<remarks>
208-
<format type="text/markdown"><![CDATA[
209-
210-
## Remarks
211-
If set to `true`, all instances of UDTs corresponding to this common language runtime (CLR) type must have a length in bytes exactly equal to <xref:Microsoft.SqlServer.Server.SqlUserDefinedTypeAttribute.MaxByteSize%2A>. This attribute is only relevant for UDTs with `UserDefined` serialization <xref:Microsoft.SqlServer.Server.Format>.
212-
208+
<format type="text/markdown"><![CDATA[
209+
210+
## Remarks
211+
If set to `true`, all instances of UDTs corresponding to this common language runtime (CLR) type must have a length in bytes exactly equal to <xref:Microsoft.SqlServer.Server.SqlUserDefinedTypeAttribute.MaxByteSize%2A>. This attribute is only relevant for UDTs with `UserDefined` serialization <xref:Microsoft.SqlServer.Server.Format>.
212+
213213
]]></format>
214214
</remarks>
215215
</Docs>
@@ -238,19 +238,19 @@
238238
<summary>The maximum size of the instance, in bytes.</summary>
239239
<value>An <see cref="T:System.Int32" /> value representing the maximum size of the instance.</value>
240240
<remarks>
241-
<format type="text/markdown"><![CDATA[
242-
243-
## Remarks
244-
You must specify the <xref:Microsoft.SqlServer.Server.SqlUserDefinedTypeAttribute.MaxByteSize%2A> property with the `UserDefined` serialization <xref:Microsoft.SqlServer.Server.Format>.
245-
246-
When connecting to SQL Server 2005 or earlier, <xref:Microsoft.SqlServer.Server.SqlUserDefinedTypeAttribute.MaxByteSize%2A> must be between 1 and 8000.
247-
248-
When connecting to SQL Server 2008 or later, set <xref:Microsoft.SqlServer.Server.SqlUserDefinedTypeAttribute.MaxByteSize%2A> between 1 and 8000, for a type whose instances are always 8,000 bytes or less. For types that can have instances larger than 8000, specify -1.
249-
250-
For a UDT with user-defined serialization specified, <xref:Microsoft.SqlServer.Server.SqlUserDefinedTypeAttribute.MaxByteSize%2A> refers to the total size of the UDT in its serialized form as defined by the user. Consider a UDT with a property of a string of 10 characters (<xref:System.Char>). When the UDT is serialized using a <xref:System.IO.BinaryWriter>, the total size of the serialized string is 22 bytes: 2 bytes per Unicode UTF-16 character, multiplied by the maximum number of characters, plus 2 control bytes of overhead incurred from serializing a binary stream. So, when determining the value of <xref:Microsoft.SqlServer.Server.SqlUserDefinedTypeAttribute.MaxByteSize%2A>, the total size of the serialized UDT must be considered: the size of the data serialized in binary form plus the overhead incurred by serialization.
251-
252-
This property should not be used with `Native` serialization <xref:Microsoft.SqlServer.Server.Format>.
253-
241+
<format type="text/markdown"><![CDATA[
242+
243+
## Remarks
244+
You must specify the <xref:Microsoft.SqlServer.Server.SqlUserDefinedTypeAttribute.MaxByteSize%2A> property with the `UserDefined` serialization <xref:Microsoft.SqlServer.Server.Format>.
245+
246+
When connecting to SQL Server 2005 or earlier, <xref:Microsoft.SqlServer.Server.SqlUserDefinedTypeAttribute.MaxByteSize%2A> must be between 1 and 8000.
247+
248+
When connecting to SQL Server 2008 or later, set <xref:Microsoft.SqlServer.Server.SqlUserDefinedTypeAttribute.MaxByteSize%2A> between 1 and 8000, for a type whose instances are always 8,000 bytes or less. For types that can have instances larger than 8000, specify -1.
249+
250+
For a UDT with user-defined serialization specified, <xref:Microsoft.SqlServer.Server.SqlUserDefinedTypeAttribute.MaxByteSize%2A> refers to the total size of the UDT in its serialized form as defined by the user. Consider a UDT with a property of a string of 10 characters (<xref:System.Char>). When the UDT is serialized using a <xref:System.IO.BinaryWriter>, the total size of the serialized string is 22 bytes: 2 bytes per Unicode UTF-16 character, multiplied by the maximum number of characters, plus 2 control bytes of overhead incurred from serializing a binary stream. So, when determining the value of <xref:Microsoft.SqlServer.Server.SqlUserDefinedTypeAttribute.MaxByteSize%2A>, the total size of the serialized UDT must be considered: the size of the data serialized in binary form plus the overhead incurred by serialization.
251+
252+
This property should not be used with `Native` serialization <xref:Microsoft.SqlServer.Server.Format>.
253+
254254
]]></format>
255255
</remarks>
256256
</Docs>
@@ -279,11 +279,11 @@
279279
<summary>The SQL Server name of the user-defined type.</summary>
280280
<value>A <see cref="T:System.String" /> value representing the SQL Server name of the user-defined type.</value>
281281
<remarks>
282-
<format type="text/markdown"><![CDATA[
283-
284-
## Remarks
285-
The <xref:Microsoft.SqlServer.Server.SqlUserDefinedTypeAttribute.Name%2A> property is not used within SQL Server, but is used by the Microsoft Visual Studio .NET Integrated Development Environment (IDE).
286-
282+
<format type="text/markdown"><![CDATA[
283+
284+
## Remarks
285+
The <xref:Microsoft.SqlServer.Server.SqlUserDefinedTypeAttribute.Name%2A> property is not used within SQL Server, but is used by the Microsoft Visual Studio .NET Integrated Development Environment (IDE).
286+
287287
]]></format>
288288
</remarks>
289289
</Docs>
@@ -312,11 +312,11 @@
312312
<summary>The name of the method used to validate instances of the user-defined type.</summary>
313313
<value>A <see cref="T:System.String" /> representing the name of the method used to validate instances of the user-defined type.</value>
314314
<remarks>
315-
<format type="text/markdown"><![CDATA[
316-
317-
## Remarks
318-
The method specified by this attribute validates instances of the UDT when the UDT has been deserialized from a binary value that is not trusted.
319-
315+
<format type="text/markdown"><![CDATA[
316+
317+
## Remarks
318+
The method specified by this attribute validates instances of the UDT when the UDT has been deserialized from a binary value that is not trusted.
319+
320320
]]></format>
321321
</remarks>
322322
</Docs>

xml/Microsoft.VisualBasic.ApplicationServices/BuiltInRoleConverter.xml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@
1717
<Docs>
1818
<summary>Provides a type converter to convert <see cref="T:Microsoft.VisualBasic.ApplicationServices.BuiltInRole" /> enumeration values to <see cref="T:System.Security.Principal.WindowsBuiltInRole" /> enumeration values.</summary>
1919
<remarks>
20-
<format type="text/markdown"><![CDATA[
21-
22-
## Remarks
23-
This type converter supports the Visual Basic <xref:Microsoft.VisualBasic.ApplicationServices.User> object.
24-
25-
For more information about type converters, see the <xref:System.ComponentModel.TypeConverter> base class and [How to: Implement a Type Converter](https://learn.microsoft.com/previous-versions/visualstudio/visual-studio-2013/ayybcxe5(v=vs.120)).
26-
20+
<format type="text/markdown"><![CDATA[
21+
22+
## Remarks
23+
This type converter supports the Visual Basic <xref:Microsoft.VisualBasic.ApplicationServices.User> object.
24+
25+
For more information about type converters, see the <xref:System.ComponentModel.TypeConverter> base class and [How to: Implement a Type Converter](https://learn.microsoft.com/previous-versions/visualstudio/visual-studio-2013/ayybcxe5(v=vs.120)).
26+
2727
> [!CAUTION]
28-
> You should never create an instance of a <xref:Microsoft.VisualBasic.ApplicationServices.BuiltInRoleConverter> class. Instead, call the <xref:System.ComponentModel.TypeDescriptor.GetConverter%2A> method of the <xref:System.ComponentModel.TypeDescriptor> class. For more information, see the examples in the <xref:System.ComponentModel.TypeConverter> base class.
29-
28+
> You should never create an instance of a <xref:Microsoft.VisualBasic.ApplicationServices.BuiltInRoleConverter> class. Instead, call the <xref:System.ComponentModel.TypeDescriptor.GetConverter%2A> method of the <xref:System.ComponentModel.TypeDescriptor> class. For more information, see the examples in the <xref:System.ComponentModel.TypeConverter> base class.
29+
3030
]]></format>
3131
</remarks>
3232
<altmember cref="T:Microsoft.VisualBasic.ApplicationServices.User" />
@@ -56,11 +56,11 @@
5656
<Docs>
5757
<summary>Initializes a new instance of the <see cref="T:Microsoft.VisualBasic.ApplicationServices.BuiltInRoleConverter" /> class.</summary>
5858
<remarks>
59-
<format type="text/markdown"><![CDATA[
60-
61-
## Remarks
62-
This type converter supports the Visual Basic <xref:Microsoft.VisualBasic.ApplicationServices.User> object.
63-
59+
<format type="text/markdown"><![CDATA[
60+
61+
## Remarks
62+
This type converter supports the Visual Basic <xref:Microsoft.VisualBasic.ApplicationServices.User> object.
63+
6464
]]></format>
6565
</remarks>
6666
<altmember cref="T:Microsoft.VisualBasic.ApplicationServices.User" />
@@ -95,13 +95,13 @@
9595
<summary>Gets a value indicating whether this converter can convert an object to the given destination type using the context.</summary>
9696
<returns>A <see cref="T:System.Boolean" /> object that indicates whether this converter can perform the conversion.</returns>
9797
<remarks>
98-
<format type="text/markdown"><![CDATA[
99-
100-
## Remarks
101-
The `context` parameter can be used to extract additional information about the environment this converter is being invoked from. This can be `Nothing`, so always check. Also, properties on the context object can return `Nothing`.
102-
103-
This type converter supports the Visual Basic <xref:Microsoft.VisualBasic.ApplicationServices.User> object.
104-
98+
<format type="text/markdown"><![CDATA[
99+
100+
## Remarks
101+
The `context` parameter can be used to extract additional information about the environment this converter is being invoked from. This can be `Nothing`, so always check. Also, properties on the context object can return `Nothing`.
102+
103+
This type converter supports the Visual Basic <xref:Microsoft.VisualBasic.ApplicationServices.User> object.
104+
105105
]]></format>
106106
</remarks>
107107
<altmember cref="T:Microsoft.VisualBasic.ApplicationServices.User" />
@@ -140,15 +140,15 @@
140140
<summary>Converts the given object to another type.</summary>
141141
<returns>The converted object.</returns>
142142
<remarks>
143-
<format type="text/markdown"><![CDATA[
144-
145-
## Remarks
146-
The most common types to convert to and convert from are string objects. The default implementation makes a call to <xref:System.Object.ToString%2A> on the object if the object is valid and if the destination type is <xref:System.String>.
147-
148-
The `context` parameter can be used to extract additional information about the environment this converter is being invoked from. This can be `Nothing`, so always check. Also, properties on the context object can return `Nothing`.
149-
150-
This type converter supports the Visual Basic <xref:Microsoft.VisualBasic.ApplicationServices.User> object.
151-
143+
<format type="text/markdown"><![CDATA[
144+
145+
## Remarks
146+
The most common types to convert to and convert from are string objects. The default implementation makes a call to <xref:System.Object.ToString%2A> on the object if the object is valid and if the destination type is <xref:System.String>.
147+
148+
The `context` parameter can be used to extract additional information about the environment this converter is being invoked from. This can be `Nothing`, so always check. Also, properties on the context object can return `Nothing`.
149+
150+
This type converter supports the Visual Basic <xref:Microsoft.VisualBasic.ApplicationServices.User> object.
151+
152152
]]></format>
153153
</remarks>
154154
<exception cref="T:System.ArgumentNullException">

0 commit comments

Comments
 (0)