-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
Copy pathSqlMetaData.xml
2910 lines (2810 loc) · 186 KB
/
SqlMetaData.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<Type Name="SqlMetaData" FullName="Microsoft.SqlServer.Server.SqlMetaData">
<TypeSignature Language="C#" Value="public sealed class SqlMetaData" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit SqlMetaData extends System.Object" />
<TypeSignature Language="DocId" Value="T:Microsoft.SqlServer.Server.SqlMetaData" />
<TypeSignature Language="VB.NET" Value="Public NotInheritable Class SqlMetaData" />
<TypeSignature Language="F#" Value="type SqlMetaData = class" />
<TypeSignature Language="C++ CLI" Value="public ref class SqlMetaData sealed" />
<AssemblyInfo>
<AssemblyName>System.Data.SqlClient</AssemblyName>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>4.4.0.0</AssemblyVersion>
<AssemblyVersion>4.5.0.0</AssemblyVersion>
<AssemblyVersion>4.6.0.0</AssemblyVersion>
<AssemblyVersion>4.6.1.0</AssemblyVersion>
<AssemblyVersion>4.6.1.1</AssemblyVersion>
<AssemblyVersion>4.6.1.5</AssemblyVersion>
<AssemblyVersion>4.6.1.6</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Data</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute FrameworkAlternate="net-7.0-pp;net-8.0-pp;net-9.0-pp;netframework-4.7.1-pp;netframework-4.7.2-pp;netframework-4.7-pp;netframework-4.8.1-pp;netframework-4.8-pp;netstandard-2.0-pp">
<AttributeName Language="C#">[System.Obsolete("Use the Microsoft.SqlServer.Server package instead.")]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("Use the Microsoft.SqlServer.Server package instead.")>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Specifies and retrieves metadata information from parameters and columns of <see cref="T:Microsoft.SqlServer.Server.SqlDataRecord" /> objects. This class cannot be inherited.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
The following example shows the creation of several <xref:Microsoft.SqlServer.Server.SqlMetaData> objects, which describe the column metadata of a record, and the creation of a <xref:Microsoft.SqlServer.Server.SqlDataRecord>. The column values of the <xref:Microsoft.SqlServer.Server.SqlDataRecord> are set and the <xref:Microsoft.SqlServer.Server.SqlDataRecord> is sent to the calling program using the <xref:Microsoft.SqlServer.Server.SqlContext> class.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlMetaData Samples/CS/source.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_ADO.NET/DataWorks SqlMetaData Samples/VB/source.vb" id="Snippet1":::
]]></format>
</remarks>
</Docs>
<Members>
<MemberGroup MemberName=".ctor">
<AssemblyInfo>
<AssemblyName>System.Data.SqlClient</AssemblyName>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Initializes a new instance of the <see cref="T:Microsoft.SqlServer.Server.SqlMetaData" /> class.</summary>
</Docs>
</MemberGroup>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public SqlMetaData (string name, System.Data.SqlDbType dbType);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string name, valuetype System.Data.SqlDbType dbType) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.SqlServer.Server.SqlMetaData.#ctor(System.String,System.Data.SqlDbType)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (name As String, dbType As SqlDbType)" />
<MemberSignature Language="F#" Value="new Microsoft.SqlServer.Server.SqlMetaData : string * System.Data.SqlDbType -> Microsoft.SqlServer.Server.SqlMetaData" Usage="new Microsoft.SqlServer.Server.SqlMetaData (name, dbType)" />
<MemberSignature Language="C++ CLI" Value="public:
 SqlMetaData(System::String ^ name, System::Data::SqlDbType dbType);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Data.SqlClient</AssemblyName>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>4.6.1.6</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Data</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="name" Type="System.String" />
<Parameter Name="dbType" Type="System.Data.SqlDbType" />
</Parameters>
<Docs>
<param name="name">The name of the column.</param>
<param name="dbType">The SQL Server type of the parameter or column.</param>
<summary>Initializes a new instance of the <see cref="T:Microsoft.SqlServer.Server.SqlMetaData" /> class with the specified column name and type.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Only the following are allowed to be passed to the constructor as `dbType`: `Bit`, `BigInt`, `DateTime`, `Decimal`, `Float`, `Int`, `Money`, `Numeric`, `SmallDateTime`, `SmallInt`, `SmallMoney`, `TimeStamp`, `TinyInt`, `UniqueIdentifier`, `Xml`.
The following are the default values assigned to `dbType`, depending on the `SqlDbType` (the <xref:Microsoft.SqlServer.Server.SqlMetaData.XmlSchemaCollectionDatabase%2A>, <xref:Microsoft.SqlServer.Server.SqlMetaData.XmlSchemaCollectionName%2A>, <xref:Microsoft.SqlServer.Server.SqlMetaData.XmlSchemaCollectionOwningSchema%2A>, and <xref:Microsoft.SqlServer.Server.SqlMetaData.Type%2A> properties are set to `null`):
|SqlDbType|Maximum length|Precision|Scale|Locale|Compare options|
|---------------|--------------------|---------------|-----------|------------|---------------------|
|`Bit`|1|1|0|0|None|
|`BigInt`|8|19|0|0|None|
|`DateTime`|8|23|3|0|None|
|`Decimal`|9|18|0|0|None|
|`Float`|8|53|0|0|None|
|`Int`|4|10|0|0|None|
|`Money`|8|19|4|0|None|
|`Numeric`|9|18|0|0|None|
|`SmallDateTime`|4|16|0|0|None|
|`SmallInt`|2|5|0|0|None|
|`SmallMoney`|4|10|4|0|None|
|`TimeStamp`|8|0|0|0|None|
|`TinyInt`|1|3|0|0|None|
|`UniqueIdentifier`|16|0|0|0|None|
|`Xml`|Max (-1)|0|0|0|IgnoreCase, IgnoreKanaType, IgnoreWidth|
## Examples
The following example creates a new <xref:Microsoft.SqlServer.Server.SqlMetaData> object by specifying the column name and a column data type of <xref:System.Data.SqlDbType>.`Int`.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlMetaData Samples/CS/source.cs" id="Snippet3":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_ADO.NET/DataWorks SqlMetaData Samples/VB/source.vb" id="Snippet3":::
]]></format>
</remarks>
<exception cref="T:System.ArgumentNullException">The <paramref name="name" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentException">A <see langword="SqlDbType" /> that is not allowed was passed to the constructor as <paramref name="dbType" />.</exception>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public SqlMetaData (string name, System.Data.SqlDbType dbType, long maxLength);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string name, valuetype System.Data.SqlDbType dbType, int64 maxLength) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.SqlServer.Server.SqlMetaData.#ctor(System.String,System.Data.SqlDbType,System.Int64)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (name As String, dbType As SqlDbType, maxLength As Long)" />
<MemberSignature Language="F#" Value="new Microsoft.SqlServer.Server.SqlMetaData : string * System.Data.SqlDbType * int64 -> Microsoft.SqlServer.Server.SqlMetaData" Usage="new Microsoft.SqlServer.Server.SqlMetaData (name, dbType, maxLength)" />
<MemberSignature Language="C++ CLI" Value="public:
 SqlMetaData(System::String ^ name, System::Data::SqlDbType dbType, long maxLength);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Data.SqlClient</AssemblyName>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>4.6.1.6</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Data</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="name" Type="System.String" />
<Parameter Name="dbType" Type="System.Data.SqlDbType" />
<Parameter Name="maxLength" Type="System.Int64" />
</Parameters>
<Docs>
<param name="name">The name of the column.</param>
<param name="dbType">The SQL Server type of the parameter or column.</param>
<param name="maxLength">The maximum length of the specified type.</param>
<summary>Initializes a new instance of the <see cref="T:Microsoft.SqlServer.Server.SqlMetaData" /> class with the specified column name, type, and maximum length.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Only the following are allowed to be passed to the constructor as `dbType`: `Binary`, `Char`, `Image`, `NChar`, `Ntext`, `NVarChar`, `Text`, `VarBinary`, `VarChar`.
Only a `maxLength` specification of <xref:Microsoft.SqlServer.Server.SqlMetaData.Max%2A>, or -1 is allowed for a `dbType` of `Text`, `NText`, or `Image`.
For a `dbType` of `Varchar`, `Nvarchar`, or `VarBinary`, a length specification of <xref:Microsoft.SqlServer.Server.SqlMetaData.Max%2A>, or -1, declares the metadata as varchar(max), nvarchar(max), or nvarbinary(max), respectively.
The following are the default values assigned to `dbType`, depending on the `SqlDbType` (the <xref:Microsoft.SqlServer.Server.SqlMetaData.XmlSchemaCollectionDatabase%2A>, <xref:Microsoft.SqlServer.Server.SqlMetaData.XmlSchemaCollectionName%2A>, <xref:Microsoft.SqlServer.Server.SqlMetaData.XmlSchemaCollectionOwningSchema%2A>, and <xref:Microsoft.SqlServer.Server.SqlMetaData.Type%2A> properties are set to `null`):
| SqlDbType | Precision | Scale | Locale | Compare options |
|-----------|-----------|-------|-----------|-----------------------------------------|
| Binary | 0 | 0 | 0 | IgnoreCase, IgnoreKanaType, IgnoreWidth |
| Char | 0 | 0 | \<thread> | IgnoreCase, IgnoreKanaType, IgnoreWidth |
| Image | 0 | 0 | 0 | None |
| NChar | 0 | 0 | \<thread> | IgnoreCase, IgnoreKanaType, IgnoreWidth |
| NText | 0 | 0 | \<thread> | IgnoreCase, IgnoreKanaType, IgnoreWidth |
| NVarChar | 0 | 0 | \<thread> | IgnoreCase, IgnoreKanaType, IgnoreWidth |
| Text | 0 | 0 | \<thread> | IgnoreCase, IgnoreKanaType, IgnoreWidth |
| VarBinary | 0 | 0 | | IgnoreCase, IgnoreKanaType, IgnoreWidth |
| VarChar | 0 | 0 | \<thread> | IgnoreCase, IgnoreKanaType, IgnoreWidth |
## Examples
The following example creates a new <xref:Microsoft.SqlServer.Server.SqlMetaData> object by specifying the column name, a column data type of <xref:System.Data.SqlDbType>`.NVarChar`, and a maximum length of 12 characters.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlMetaData Samples/CS/source.cs" id="Snippet2":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_ADO.NET/DataWorks SqlMetaData Samples/VB/source.vb" id="Snippet2":::
]]></format>
</remarks>
<exception cref="T:System.ArgumentNullException">The <paramref name="name" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentException">A SqlDbType that is not allowed was passed to the constructor as <paramref name="dbType" />.</exception>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public SqlMetaData (string name, System.Data.SqlDbType dbType, Type userDefinedType);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string name, valuetype System.Data.SqlDbType dbType, class System.Type userDefinedType) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.SqlServer.Server.SqlMetaData.#ctor(System.String,System.Data.SqlDbType,System.Type)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (name As String, dbType As SqlDbType, userDefinedType As Type)" />
<MemberSignature Language="F#" Value="new Microsoft.SqlServer.Server.SqlMetaData : string * System.Data.SqlDbType * Type -> Microsoft.SqlServer.Server.SqlMetaData" Usage="new Microsoft.SqlServer.Server.SqlMetaData (name, dbType, userDefinedType)" />
<MemberSignature Language="C++ CLI" Value="public:
 SqlMetaData(System::String ^ name, System::Data::SqlDbType dbType, Type ^ userDefinedType);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Data</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Data.SqlClient</AssemblyName>
<AssemblyVersion>4.6.1.6</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="name" Type="System.String" Index="0" FrameworkAlternate="net-6.0-pp;net-7.0-pp;net-8.0-pp;net-9.0-pp;netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.1-pp;netframework-4.7.2;netframework-4.7.2-pp;netframework-4.7-pp;netframework-4.8;netframework-4.8.1;netframework-4.8.1-pp;netframework-4.8-pp;netstandard-2.0-pp" />
<Parameter Name="dbType" Type="System.Data.SqlDbType" Index="1" FrameworkAlternate="net-6.0-pp;net-7.0-pp;net-8.0-pp;net-9.0-pp;netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.1-pp;netframework-4.7.2;netframework-4.7.2-pp;netframework-4.7-pp;netframework-4.8;netframework-4.8.1;netframework-4.8.1-pp;netframework-4.8-pp;netstandard-2.0-pp" />
<Parameter Name="userDefinedType" Type="System.Type" Index="2" FrameworkAlternate="net-6.0-pp;net-7.0-pp;net-8.0-pp;net-9.0-pp;netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.1-pp;netframework-4.7.2;netframework-4.7.2-pp;netframework-4.7-pp;netframework-4.8;netframework-4.8.1;netframework-4.8.1-pp;netframework-4.8-pp;netstandard-2.0-pp" />
</Parameters>
<Docs>
<param name="name">The name of the column.</param>
<param name="dbType">The SQL Server type of the parameter or column.</param>
<param name="userDefinedType">A <see cref="T:System.Type" /> instance that points to the UDT.</param>
<summary>Initializes a new instance of the <see cref="T:Microsoft.SqlServer.Server.SqlMetaData" /> class with the specified column name, type, and user-defined type (UDT).</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Only the following `SqlDbType` is allowed to be passed to the constructor as `dbType`: `UDT`.
The following are the default values assigned to `dbType`, depending on the `SqlDbType` (the <xref:Microsoft.SqlServer.Server.SqlMetaData.XmlSchemaCollectionDatabase%2A>, <xref:Microsoft.SqlServer.Server.SqlMetaData.XmlSchemaCollectionName%2A>, <xref:Microsoft.SqlServer.Server.SqlMetaData.XmlSchemaCollectionOwningSchema%2A>, and <xref:Microsoft.SqlServer.Server.SqlMetaData.Type%2A> properties are set to `null`):
|SqlDbType|Maximum length|Precision|Scale|Locale|Compare options|
|---------------|--------------------|---------------|-----------|------------|---------------------|
|UDT|\<Max length of the type> or -1|0|0|0|None|
]]></format>
</remarks>
<exception cref="T:System.ArgumentNullException">The <paramref name="name" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentException">A SqlDbType that is not allowed was passed to the constructor as <paramref name="dbType" />, or <paramref name="userDefinedType" /> points to a type that does not have <see cref="T:Microsoft.SqlServer.Server.SqlUserDefinedTypeAttribute" /> declared.</exception>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public SqlMetaData (string name, System.Data.SqlDbType dbType, byte precision, byte scale);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string name, valuetype System.Data.SqlDbType dbType, unsigned int8 precision, unsigned int8 scale) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.SqlServer.Server.SqlMetaData.#ctor(System.String,System.Data.SqlDbType,System.Byte,System.Byte)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (name As String, dbType As SqlDbType, precision As Byte, scale As Byte)" />
<MemberSignature Language="F#" Value="new Microsoft.SqlServer.Server.SqlMetaData : string * System.Data.SqlDbType * byte * byte -> Microsoft.SqlServer.Server.SqlMetaData" Usage="new Microsoft.SqlServer.Server.SqlMetaData (name, dbType, precision, scale)" />
<MemberSignature Language="C++ CLI" Value="public:
 SqlMetaData(System::String ^ name, System::Data::SqlDbType dbType, System::Byte precision, System::Byte scale);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Data.SqlClient</AssemblyName>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>4.6.1.6</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Data</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="name" Type="System.String" />
<Parameter Name="dbType" Type="System.Data.SqlDbType" />
<Parameter Name="precision" Type="System.Byte" />
<Parameter Name="scale" Type="System.Byte" />
</Parameters>
<Docs>
<param name="name">The name of the parameter or column.</param>
<param name="dbType">The SQL Server type of the parameter or column.</param>
<param name="precision">The precision of the parameter or column.</param>
<param name="scale">The scale of the parameter or column.</param>
<summary>Initializes a new instance of the <see cref="T:Microsoft.SqlServer.Server.SqlMetaData" /> class with the specified column name, type, precision, and scale.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Only the following `SqlDbType` is allowed to be passed to the constructor as `dbType`: `Decimal`.
The following are the default values assigned to `dbType`, depending on the `SqlDbType` (the <xref:Microsoft.SqlServer.Server.SqlMetaData.XmlSchemaCollectionDatabase%2A>, <xref:Microsoft.SqlServer.Server.SqlMetaData.XmlSchemaCollectionName%2A>, <xref:Microsoft.SqlServer.Server.SqlMetaData.XmlSchemaCollectionOwningSchema%2A>, and <xref:Microsoft.SqlServer.Server.SqlMetaData.Type%2A> properties are set to `null`):
|SqlDbType|Maximum length|Precision|Scale|Locale|Compare options|
|---------------|--------------------|---------------|-----------|------------|---------------------|
|Decimal|9|18|0|0|None|
]]></format>
</remarks>
<exception cref="T:System.ArgumentNullException">The <paramref name="name" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentException">A <see langword="SqlDbType" /> that is not allowed was passed to the constructor as <paramref name="dbType" />, or <paramref name="scale" /> was greater than <paramref name="precision" />.</exception>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public SqlMetaData (string name, System.Data.SqlDbType dbType, Type userDefinedType, string serverTypeName);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string name, valuetype System.Data.SqlDbType dbType, class System.Type userDefinedType, string serverTypeName) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.SqlServer.Server.SqlMetaData.#ctor(System.String,System.Data.SqlDbType,System.Type,System.String)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (name As String, dbType As SqlDbType, userDefinedType As Type, serverTypeName As String)" />
<MemberSignature Language="F#" Value="new Microsoft.SqlServer.Server.SqlMetaData : string * System.Data.SqlDbType * Type * string -> Microsoft.SqlServer.Server.SqlMetaData" Usage="new Microsoft.SqlServer.Server.SqlMetaData (name, dbType, userDefinedType, serverTypeName)" />
<MemberSignature Language="C++ CLI" Value="public:
 SqlMetaData(System::String ^ name, System::Data::SqlDbType dbType, Type ^ userDefinedType, System::String ^ serverTypeName);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Data</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Data.SqlClient</AssemblyName>
<AssemblyVersion>4.6.1.6</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="name" Type="System.String" Index="0" FrameworkAlternate="net-6.0-pp;net-7.0-pp;net-8.0-pp;net-9.0-pp;netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.1-pp;netframework-4.7.2;netframework-4.7.2-pp;netframework-4.7-pp;netframework-4.8;netframework-4.8.1;netframework-4.8.1-pp;netframework-4.8-pp;netstandard-2.0-pp" />
<Parameter Name="dbType" Type="System.Data.SqlDbType" Index="1" FrameworkAlternate="net-6.0-pp;net-7.0-pp;net-8.0-pp;net-9.0-pp;netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.1-pp;netframework-4.7.2;netframework-4.7.2-pp;netframework-4.7-pp;netframework-4.8;netframework-4.8.1;netframework-4.8.1-pp;netframework-4.8-pp;netstandard-2.0-pp" />
<Parameter Name="userDefinedType" Type="System.Type" Index="2" FrameworkAlternate="net-6.0-pp;net-7.0-pp;net-8.0-pp;net-9.0-pp;netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.1-pp;netframework-4.7.2;netframework-4.7.2-pp;netframework-4.7-pp;netframework-4.8;netframework-4.8.1;netframework-4.8.1-pp;netframework-4.8-pp;netstandard-2.0-pp" />
<Parameter Name="serverTypeName" Type="System.String" Index="3" FrameworkAlternate="net-6.0-pp;net-7.0-pp;net-8.0-pp;net-9.0-pp;netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.1-pp;netframework-4.7.2;netframework-4.7.2-pp;netframework-4.7-pp;netframework-4.8;netframework-4.8.1;netframework-4.8.1-pp;netframework-4.8-pp;netstandard-2.0-pp" />
</Parameters>
<Docs>
<param name="name">The name of the column.</param>
<param name="dbType">The SQL Server type of the parameter or column.</param>
<param name="userDefinedType">A <see cref="T:System.Type" /> instance that points to the UDT.</param>
<param name="serverTypeName">The SQL Server type name for <paramref name="userDefinedType" />.</param>
<summary>Initializes a new instance of the <see cref="T:Microsoft.SqlServer.Server.SqlMetaData" /> class with the specified column name, user-defined type (UDT), and SQLServer type.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public SqlMetaData (string name, System.Data.SqlDbType dbType, long maxLength, long locale, System.Data.SqlTypes.SqlCompareOptions compareOptions);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string name, valuetype System.Data.SqlDbType dbType, int64 maxLength, int64 locale, valuetype System.Data.SqlTypes.SqlCompareOptions compareOptions) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.SqlServer.Server.SqlMetaData.#ctor(System.String,System.Data.SqlDbType,System.Int64,System.Int64,System.Data.SqlTypes.SqlCompareOptions)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (name As String, dbType As SqlDbType, maxLength As Long, locale As Long, compareOptions As SqlCompareOptions)" />
<MemberSignature Language="F#" Value="new Microsoft.SqlServer.Server.SqlMetaData : string * System.Data.SqlDbType * int64 * int64 * System.Data.SqlTypes.SqlCompareOptions -> Microsoft.SqlServer.Server.SqlMetaData" Usage="new Microsoft.SqlServer.Server.SqlMetaData (name, dbType, maxLength, locale, compareOptions)" />
<MemberSignature Language="C++ CLI" Value="public:
 SqlMetaData(System::String ^ name, System::Data::SqlDbType dbType, long maxLength, long locale, System::Data::SqlTypes::SqlCompareOptions compareOptions);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Data.SqlClient</AssemblyName>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>4.6.1.6</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Data</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="name" Type="System.String" />
<Parameter Name="dbType" Type="System.Data.SqlDbType" />
<Parameter Name="maxLength" Type="System.Int64" />
<Parameter Name="locale" Type="System.Int64" />
<Parameter Name="compareOptions" Type="System.Data.SqlTypes.SqlCompareOptions" />
</Parameters>
<Docs>
<param name="name">The name of the parameter or column.</param>
<param name="dbType">The SQL Server type of the parameter or column.</param>
<param name="maxLength">The maximum length of the specified type.</param>
<param name="locale">The locale ID of the parameter or column.</param>
<param name="compareOptions">The comparison rules of the parameter or column.</param>
<summary>Initializes a new instance of the <see cref="T:Microsoft.SqlServer.Server.SqlMetaData" /> class with the specified column name, type, maximum length, locale, and compare options.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Only the following are allowed to be passed to the constructor as `dbType`: `Char`, `NChar`, `Ntext`, `NVarChar`, `Text`, `VarChar`.
Only a `maxLength` specification of <xref:Microsoft.SqlServer.Server.SqlMetaData.Max%2A>, or -1, is allowed for a `dbType` of `Text` or `NText`.
For a `dbType` of `Varchar` or `Nvarchar`, a length specification of <xref:Microsoft.SqlServer.Server.SqlMetaData.Max%2A>, or -1, declares the metadata as varchar(max) and nvarchar(max), respectively.
The following are the default values assigned to `dbType`, depending on the `SqlDbType` (the <xref:Microsoft.SqlServer.Server.SqlMetaData.XmlSchemaCollectionDatabase%2A>, <xref:Microsoft.SqlServer.Server.SqlMetaData.XmlSchemaCollectionName%2A>, <xref:Microsoft.SqlServer.Server.SqlMetaData.XmlSchemaCollectionOwningSchema%2A>, and <xref:Microsoft.SqlServer.Server.SqlMetaData.Type%2A> properties are set to `null`):
|SqlDbType|Precision|Scale|
|---------------|---------------|-----------|
|`Char`|0|0|
|`NChar`|0|0|
|`NText`|0|0|
|`NVarChar`|0|0|
|`Text`|0|0|
|`VarChar`|0|0|
]]></format>
</remarks>
<exception cref="T:System.ArgumentNullException">The <paramref name="name" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentException">A SqlDbType that is not allowed was passed to the constructor as <paramref name="dbType" />.</exception>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public SqlMetaData (string name, System.Data.SqlDbType dbType, string database, string owningSchema, string objectName);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string name, valuetype System.Data.SqlDbType dbType, string database, string owningSchema, string objectName) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.SqlServer.Server.SqlMetaData.#ctor(System.String,System.Data.SqlDbType,System.String,System.String,System.String)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (name As String, dbType As SqlDbType, database As String, owningSchema As String, objectName As String)" />
<MemberSignature Language="F#" Value="new Microsoft.SqlServer.Server.SqlMetaData : string * System.Data.SqlDbType * string * string * string -> Microsoft.SqlServer.Server.SqlMetaData" Usage="new Microsoft.SqlServer.Server.SqlMetaData (name, dbType, database, owningSchema, objectName)" />
<MemberSignature Language="C++ CLI" Value="public:
 SqlMetaData(System::String ^ name, System::Data::SqlDbType dbType, System::String ^ database, System::String ^ owningSchema, System::String ^ objectName);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Data.SqlClient</AssemblyName>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>4.6.1.6</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Data</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="name" Type="System.String" />
<Parameter Name="dbType" Type="System.Data.SqlDbType" />
<Parameter Name="database" Type="System.String" />
<Parameter Name="owningSchema" Type="System.String" />
<Parameter Name="objectName" Type="System.String" />
</Parameters>
<Docs>
<param name="name">The name of the column.</param>
<param name="dbType">The SQL Server type of the parameter or column.</param>
<param name="database">The database name of the XML schema collection of a typed XML instance.</param>
<param name="owningSchema">The relational schema name of the XML schema collection of a typed XML instance.</param>
<param name="objectName">The name of the XML schema collection of a typed XML instance.</param>
<summary>Initializes a new instance of the <see cref="T:Microsoft.SqlServer.Server.SqlMetaData" /> class with the specified column name, type, database name, owning schema, and object name.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Only the following `SqlDbType` is allowed to be passed to the constructor as `dbType`: `Xml`.
The following are the default values assigned to `dbType`, depending on the `SqlDbType`:
|SqlDbType|Maximum length|Precision|Scale|Locale|Compare options|
|---------------|--------------------|---------------|-----------|------------|---------------------|
|`Xml`|Max (-1)|0|0|0|IgnoreCase, IgnoreKanaType, IgnoreWidth|
]]></format>
</remarks>
<exception cref="T:System.ArgumentNullException">The <paramref name="name" /> is <see langword="null" />, or <paramref name="objectName" /> is <see langword="null" /> when <paramref name="database" /> and <paramref name="owningSchema" /> are non-<see langword="null" />.</exception>
<exception cref="T:System.ArgumentException">A SqlDbType that is not allowed was passed to the constructor as <paramref name="dbType" />.</exception>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public SqlMetaData (string name, System.Data.SqlDbType dbType, bool useServerDefault, bool isUniqueKey, System.Data.SqlClient.SortOrder columnSortOrder, int sortOrdinal);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string name, valuetype System.Data.SqlDbType dbType, bool useServerDefault, bool isUniqueKey, valuetype System.Data.SqlClient.SortOrder columnSortOrder, int32 sortOrdinal) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.SqlServer.Server.SqlMetaData.#ctor(System.String,System.Data.SqlDbType,System.Boolean,System.Boolean,System.Data.SqlClient.SortOrder,System.Int32)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (name As String, dbType As SqlDbType, useServerDefault As Boolean, isUniqueKey As Boolean, columnSortOrder As SortOrder, sortOrdinal As Integer)" />
<MemberSignature Language="F#" Value="new Microsoft.SqlServer.Server.SqlMetaData : string * System.Data.SqlDbType * bool * bool * System.Data.SqlClient.SortOrder * int -> Microsoft.SqlServer.Server.SqlMetaData" Usage="new Microsoft.SqlServer.Server.SqlMetaData (name, dbType, useServerDefault, isUniqueKey, columnSortOrder, sortOrdinal)" />
<MemberSignature Language="C++ CLI" Value="public:
 SqlMetaData(System::String ^ name, System::Data::SqlDbType dbType, bool useServerDefault, bool isUniqueKey, System::Data::SqlClient::SortOrder columnSortOrder, int sortOrdinal);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Data.SqlClient</AssemblyName>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>4.6.1.6</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Data</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="name" Type="System.String" />
<Parameter Name="dbType" Type="System.Data.SqlDbType" />
<Parameter Name="useServerDefault" Type="System.Boolean" />
<Parameter Name="isUniqueKey" Type="System.Boolean" />
<Parameter Name="columnSortOrder" Type="System.Data.SqlClient.SortOrder" />
<Parameter Name="sortOrdinal" Type="System.Int32" />
</Parameters>
<Docs>
<param name="name">The name of the column.</param>
<param name="dbType">The SQL Server type of the parameter or column.</param>
<param name="useServerDefault">Specifies whether this column should use the default server value.</param>
<param name="isUniqueKey">Specifies if the column in the table-valued parameter is unique.</param>
<param name="columnSortOrder">Specifies the sort order for a column.</param>
<param name="sortOrdinal">Specifies the ordinal of the sort column.</param>
<summary>Initializes a new instance of the <see cref="T:Microsoft.SqlServer.Server.SqlMetaData" /> class with the specified column name, and default server. This form of the constructor supports table-valued parameters by allowing you to specify if the column is unique in the table-valued parameter, the sort order for the column, and the ordinal of the sort column.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
For more information, see [Table-Valued Parameters](/dotnet/framework/data/adonet/sql/table-valued-parameters).
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public SqlMetaData (string name, System.Data.SqlDbType dbType, long maxLength, bool useServerDefault, bool isUniqueKey, System.Data.SqlClient.SortOrder columnSortOrder, int sortOrdinal);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string name, valuetype System.Data.SqlDbType dbType, int64 maxLength, bool useServerDefault, bool isUniqueKey, valuetype System.Data.SqlClient.SortOrder columnSortOrder, int32 sortOrdinal) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.SqlServer.Server.SqlMetaData.#ctor(System.String,System.Data.SqlDbType,System.Int64,System.Boolean,System.Boolean,System.Data.SqlClient.SortOrder,System.Int32)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (name As String, dbType As SqlDbType, maxLength As Long, useServerDefault As Boolean, isUniqueKey As Boolean, columnSortOrder As SortOrder, sortOrdinal As Integer)" />
<MemberSignature Language="F#" Value="new Microsoft.SqlServer.Server.SqlMetaData : string * System.Data.SqlDbType * int64 * bool * bool * System.Data.SqlClient.SortOrder * int -> Microsoft.SqlServer.Server.SqlMetaData" Usage="new Microsoft.SqlServer.Server.SqlMetaData (name, dbType, maxLength, useServerDefault, isUniqueKey, columnSortOrder, sortOrdinal)" />
<MemberSignature Language="C++ CLI" Value="public:
 SqlMetaData(System::String ^ name, System::Data::SqlDbType dbType, long maxLength, bool useServerDefault, bool isUniqueKey, System::Data::SqlClient::SortOrder columnSortOrder, int sortOrdinal);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Data.SqlClient</AssemblyName>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>4.6.1.6</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Data</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="name" Type="System.String" />
<Parameter Name="dbType" Type="System.Data.SqlDbType" />
<Parameter Name="maxLength" Type="System.Int64" />
<Parameter Name="useServerDefault" Type="System.Boolean" />
<Parameter Name="isUniqueKey" Type="System.Boolean" />
<Parameter Name="columnSortOrder" Type="System.Data.SqlClient.SortOrder" />
<Parameter Name="sortOrdinal" Type="System.Int32" />
</Parameters>
<Docs>
<param name="name">The name of the column.</param>
<param name="dbType">The SQL Server type of the parameter or column.</param>
<param name="maxLength">The maximum length of the specified type.</param>
<param name="useServerDefault">Specifies whether this column should use the default server value.</param>
<param name="isUniqueKey">Specifies if the column in the table-valued parameter is unique.</param>
<param name="columnSortOrder">Specifies the sort order for a column.</param>
<param name="sortOrdinal">Specifies the ordinal of the sort column.</param>
<summary>Initializes a new instance of the <see cref="T:Microsoft.SqlServer.Server.SqlMetaData" /> class with the specified column name, type, maximum length, and server default. This form of the constructor supports table-valued parameters by allowing you to specify if the column is unique in the table-valued parameter, the sort order for the column, and the ordinal of the sort column.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
For more information, see [Table-Valued Parameters](/dotnet/framework/data/adonet/sql/table-valued-parameters).
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public SqlMetaData (string name, System.Data.SqlDbType dbType, byte precision, byte scale, bool useServerDefault, bool isUniqueKey, System.Data.SqlClient.SortOrder columnSortOrder, int sortOrdinal);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string name, valuetype System.Data.SqlDbType dbType, unsigned int8 precision, unsigned int8 scale, bool useServerDefault, bool isUniqueKey, valuetype System.Data.SqlClient.SortOrder columnSortOrder, int32 sortOrdinal) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.SqlServer.Server.SqlMetaData.#ctor(System.String,System.Data.SqlDbType,System.Byte,System.Byte,System.Boolean,System.Boolean,System.Data.SqlClient.SortOrder,System.Int32)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (name As String, dbType As SqlDbType, precision As Byte, scale As Byte, useServerDefault As Boolean, isUniqueKey As Boolean, columnSortOrder As SortOrder, sortOrdinal As Integer)" />
<MemberSignature Language="F#" Value="new Microsoft.SqlServer.Server.SqlMetaData : string * System.Data.SqlDbType * byte * byte * bool * bool * System.Data.SqlClient.SortOrder * int -> Microsoft.SqlServer.Server.SqlMetaData" Usage="new Microsoft.SqlServer.Server.SqlMetaData (name, dbType, precision, scale, useServerDefault, isUniqueKey, columnSortOrder, sortOrdinal)" />
<MemberSignature Language="C++ CLI" Value="public:
 SqlMetaData(System::String ^ name, System::Data::SqlDbType dbType, System::Byte precision, System::Byte scale, bool useServerDefault, bool isUniqueKey, System::Data::SqlClient::SortOrder columnSortOrder, int sortOrdinal);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Data.SqlClient</AssemblyName>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>4.6.1.6</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Data</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="name" Type="System.String" />
<Parameter Name="dbType" Type="System.Data.SqlDbType" />
<Parameter Name="precision" Type="System.Byte" />
<Parameter Name="scale" Type="System.Byte" />
<Parameter Name="useServerDefault" Type="System.Boolean" />
<Parameter Name="isUniqueKey" Type="System.Boolean" />
<Parameter Name="columnSortOrder" Type="System.Data.SqlClient.SortOrder" />
<Parameter Name="sortOrdinal" Type="System.Int32" />
</Parameters>
<Docs>
<param name="name">The name of the column.</param>
<param name="dbType">The SQL Server type of the parameter or column.</param>
<param name="precision">The precision of the parameter or column.</param>
<param name="scale">The scale of the parameter or column.</param>
<param name="useServerDefault">Specifies whether this column should use the default server value.</param>
<param name="isUniqueKey">Specifies if the column in the table-valued parameter is unique.</param>
<param name="columnSortOrder">Specifies the sort order for a column.</param>
<param name="sortOrdinal">Specifies the ordinal of the sort column.</param>
<summary>Initializes a new instance of the <see cref="T:Microsoft.SqlServer.Server.SqlMetaData" /> class with the specified column name, type, precision, scale, and server default. This form of the constructor supports table-valued parameters by allowing you to specify if the column is unique in the table-valued parameter, the sort order for the column, and the ordinal of the sort column.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
For more information, see [Table-Valued Parameters](/dotnet/framework/data/adonet/sql/table-valued-parameters).
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public SqlMetaData (string name, System.Data.SqlDbType dbType, long maxLength, byte precision, byte scale, long locale, System.Data.SqlTypes.SqlCompareOptions compareOptions, Type userDefinedType);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string name, valuetype System.Data.SqlDbType dbType, int64 maxLength, unsigned int8 precision, unsigned int8 scale, int64 locale, valuetype System.Data.SqlTypes.SqlCompareOptions compareOptions, class System.Type userDefinedType) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.SqlServer.Server.SqlMetaData.#ctor(System.String,System.Data.SqlDbType,System.Int64,System.Byte,System.Byte,System.Int64,System.Data.SqlTypes.SqlCompareOptions,System.Type)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (name As String, dbType As SqlDbType, maxLength As Long, precision As Byte, scale As Byte, locale As Long, compareOptions As SqlCompareOptions, userDefinedType As Type)" />
<MemberSignature Language="F#" Value="new Microsoft.SqlServer.Server.SqlMetaData : string * System.Data.SqlDbType * int64 * byte * byte * int64 * System.Data.SqlTypes.SqlCompareOptions * Type -> Microsoft.SqlServer.Server.SqlMetaData" Usage="new Microsoft.SqlServer.Server.SqlMetaData (name, dbType, maxLength, precision, scale, locale, compareOptions, userDefinedType)" />
<MemberSignature Language="C++ CLI" Value="public:
 SqlMetaData(System::String ^ name, System::Data::SqlDbType dbType, long maxLength, System::Byte precision, System::Byte scale, long locale, System::Data::SqlTypes::SqlCompareOptions compareOptions, Type ^ userDefinedType);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Data.SqlClient</AssemblyName>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>4.6.1.6</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Data</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="name" Type="System.String" />
<Parameter Name="dbType" Type="System.Data.SqlDbType" />
<Parameter Name="maxLength" Type="System.Int64" />
<Parameter Name="precision" Type="System.Byte" />
<Parameter Name="scale" Type="System.Byte" />
<Parameter Name="locale" Type="System.Int64" />
<Parameter Name="compareOptions" Type="System.Data.SqlTypes.SqlCompareOptions" />
<Parameter Name="userDefinedType" Type="System.Type" />
</Parameters>
<Docs>
<param name="name">The name of the column.</param>
<param name="dbType">The SQL Server type of the parameter or column.</param>
<param name="maxLength">The maximum length of the specified type.</param>
<param name="precision">The precision of the parameter or column.</param>
<param name="scale">The scale of the parameter or column.</param>
<param name="locale">The locale ID of the parameter or column.</param>
<param name="compareOptions">The comparison rules of the parameter or column.</param>
<param name="userDefinedType">A <see cref="T:System.Type" /> instance that points to the UDT.</param>
<summary>Initializes a new instance of the <see cref="T:Microsoft.SqlServer.Server.SqlMetaData" /> class with the specified column name, type, maximum length, precision, scale, locale ID, compare options, and user-defined type (UDT).</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Only the following are allowed to be passed to the constructor as `dbType`: `BigInt`, `Bit`, `BitInt`, `DateTime`, `Decimal`, `Float`, `Image`, `Int`, `Money`, `Ntext`, `Numeric`, `Real`, `SmallDateTime`, `SmallInt`, `SmallMoney`, `Text`, `TimeStamp`, `TinyInt`, `UniqueIdentifier`, `Variant`, `Xml`.
The following are the default values assigned to `dbType`, depending on the `SqlDbType` (the <xref:Microsoft.SqlServer.Server.SqlMetaData.XmlSchemaCollectionDatabase%2A>, <xref:Microsoft.SqlServer.Server.SqlMetaData.XmlSchemaCollectionName%2A>, <xref:Microsoft.SqlServer.Server.SqlMetaData.XmlSchemaCollectionOwningSchema%2A>, and <xref:Microsoft.SqlServer.Server.SqlMetaData.Type%2A> properties are set to `null`):
|SqlDbType|Maximum length|Precision|Scale|Locale|Compare options|
|---------------|--------------------|---------------|-----------|------------|---------------------|
|`BigInt`|8|19|0|0|None|
|`Bit`|1|1|0|0|None|
|`DateTime`|8|23|3|0|None|
|`Decimal`|9|18|0|0|None|
|`Float`|8|53|0|0|None|
|`Image`|Max (-1)|0|0|0|None|
|`Int`|4|10|0|0|None|
|`Money`|8|19|4|0|None|
|`Ntext`|Max (-1)|0|0|\<thread>|IgnoreCase, IgnoreKanaType, IgnoreWidth|
|`Real`|4|24|0|0|None|
|`Row`|\<number of columns>|0|0|0|None|
|`SmallDateTime`|4|16|0|0|None|
|`SmallInt`|2|5|0|0|None|
|`SmallMoney`|4|10|4|0|None|
|`Text`|Max (-1)|0|0|\<thread>|IgnoreCase, IgnoreKanaType, IgnoreWidth|
|`TimeStamp`|8|0|0|0|None|
|`TinyInt`|1|3|0|0|None|
|`UniqueIdentifier`|16|0|0|0|None|
|`UDT`|\<Max length of the type> or -1|0|0|0|None|
|`Variant`|8016|0|0|0|None|
|`Xml`|Max (-1)|0|0|0|IgnoreCase, IgnoreKanaType, IgnoreWidth|
]]></format>
</remarks>
<exception cref="T:System.ArgumentNullException">The <paramref name="name" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentException">A <see langword="SqlDbType" /> that is not allowed was passed to the constructor as <paramref name="dbType" />, or <paramref name="userDefinedType" /> points to a type that does not have <see cref="T:Microsoft.SqlServer.Server.SqlUserDefinedTypeAttribute" /> declared.</exception>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public SqlMetaData (string name, System.Data.SqlDbType dbType, Type userDefinedType, string serverTypeName, bool useServerDefault, bool isUniqueKey, System.Data.SqlClient.SortOrder columnSortOrder, int sortOrdinal);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string name, valuetype System.Data.SqlDbType dbType, class System.Type userDefinedType, string serverTypeName, bool useServerDefault, bool isUniqueKey, valuetype System.Data.SqlClient.SortOrder columnSortOrder, int32 sortOrdinal) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.SqlServer.Server.SqlMetaData.#ctor(System.String,System.Data.SqlDbType,System.Type,System.String,System.Boolean,System.Boolean,System.Data.SqlClient.SortOrder,System.Int32)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (name As String, dbType As SqlDbType, userDefinedType As Type, serverTypeName As String, useServerDefault As Boolean, isUniqueKey As Boolean, columnSortOrder As SortOrder, sortOrdinal As Integer)" />
<MemberSignature Language="F#" Value="new Microsoft.SqlServer.Server.SqlMetaData : string * System.Data.SqlDbType * Type * string * bool * bool * System.Data.SqlClient.SortOrder * int -> Microsoft.SqlServer.Server.SqlMetaData" Usage="new Microsoft.SqlServer.Server.SqlMetaData (name, dbType, userDefinedType, serverTypeName, useServerDefault, isUniqueKey, columnSortOrder, sortOrdinal)" />
<MemberSignature Language="C++ CLI" Value="public:
 SqlMetaData(System::String ^ name, System::Data::SqlDbType dbType, Type ^ userDefinedType, System::String ^ serverTypeName, bool useServerDefault, bool isUniqueKey, System::Data::SqlClient::SortOrder columnSortOrder, int sortOrdinal);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Data</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Data.SqlClient</AssemblyName>
<AssemblyVersion>4.6.1.6</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="name" Type="System.String" Index="0" FrameworkAlternate="net-6.0-pp;net-7.0-pp;net-8.0-pp;net-9.0-pp;netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.1-pp;netframework-4.7.2;netframework-4.7.2-pp;netframework-4.7-pp;netframework-4.8;netframework-4.8.1;netframework-4.8.1-pp;netframework-4.8-pp;netstandard-2.0-pp" />
<Parameter Name="dbType" Type="System.Data.SqlDbType" Index="1" FrameworkAlternate="net-6.0-pp;net-7.0-pp;net-8.0-pp;net-9.0-pp;netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.1-pp;netframework-4.7.2;netframework-4.7.2-pp;netframework-4.7-pp;netframework-4.8;netframework-4.8.1;netframework-4.8.1-pp;netframework-4.8-pp;netstandard-2.0-pp" />
<Parameter Name="userDefinedType" Type="System.Type" Index="2" FrameworkAlternate="net-6.0-pp;net-7.0-pp;net-8.0-pp;net-9.0-pp;netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.1-pp;netframework-4.7.2;netframework-4.7.2-pp;netframework-4.7-pp;netframework-4.8;netframework-4.8.1;netframework-4.8.1-pp;netframework-4.8-pp;netstandard-2.0-pp" />
<Parameter Name="serverTypeName" Type="System.String" Index="3" FrameworkAlternate="net-6.0-pp;net-7.0-pp;net-8.0-pp;net-9.0-pp;netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.1-pp;netframework-4.7.2;netframework-4.7.2-pp;netframework-4.7-pp;netframework-4.8;netframework-4.8.1;netframework-4.8.1-pp;netframework-4.8-pp;netstandard-2.0-pp" />
<Parameter Name="useServerDefault" Type="System.Boolean" Index="4" FrameworkAlternate="net-6.0-pp;net-7.0-pp;net-8.0-pp;net-9.0-pp;netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.1-pp;netframework-4.7.2;netframework-4.7.2-pp;netframework-4.7-pp;netframework-4.8;netframework-4.8.1;netframework-4.8.1-pp;netframework-4.8-pp;netstandard-2.0-pp" />
<Parameter Name="isUniqueKey" Type="System.Boolean" Index="5" FrameworkAlternate="net-6.0-pp;net-7.0-pp;net-8.0-pp;net-9.0-pp;netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.1-pp;netframework-4.7.2;netframework-4.7.2-pp;netframework-4.7-pp;netframework-4.8;netframework-4.8.1;netframework-4.8.1-pp;netframework-4.8-pp;netstandard-2.0-pp" />
<Parameter Name="columnSortOrder" Type="System.Data.SqlClient.SortOrder" Index="6" FrameworkAlternate="net-6.0-pp;net-7.0-pp;net-8.0-pp;net-9.0-pp;netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.1-pp;netframework-4.7.2;netframework-4.7.2-pp;netframework-4.7-pp;netframework-4.8;netframework-4.8.1;netframework-4.8.1-pp;netframework-4.8-pp;netstandard-2.0-pp" />
<Parameter Name="sortOrdinal" Type="System.Int32" Index="7" FrameworkAlternate="net-6.0-pp;net-7.0-pp;net-8.0-pp;net-9.0-pp;netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.1-pp;netframework-4.7.2;netframework-4.7.2-pp;netframework-4.7-pp;netframework-4.8;netframework-4.8.1;netframework-4.8.1-pp;netframework-4.8-pp;netstandard-2.0-pp" />
</Parameters>
<Docs>
<param name="name">The name of the column.</param>
<param name="dbType">The SQL Server type of the parameter or column.</param>
<param name="userDefinedType">A <see cref="T:System.Type" /> instance that points to the UDT.</param>
<param name="serverTypeName">The SQL Server type name for <paramref name="userDefinedType" />.</param>
<param name="useServerDefault">Specifies whether this column should use the default server value.</param>
<param name="isUniqueKey">Specifies if the column in the table-valued parameter is unique.</param>
<param name="columnSortOrder">Specifies the sort order for a column.</param>
<param name="sortOrdinal">Specifies the ordinal of the sort column.</param>
<summary>Initializes a new instance of the <see cref="T:Microsoft.SqlServer.Server.SqlMetaData" /> class with the specified column name, type, user-defined type, SQL Server type, and server default. This form of the constructor supports table-valued parameters by allowing you to specify if the column is unique in the table-valued parameter, the sort order for the column, and the ordinal of the sort column.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
For more information, see [Table-Valued Parameters](/dotnet/framework/data/adonet/sql/table-valued-parameters).
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public SqlMetaData (string name, System.Data.SqlDbType dbType, long maxLength, long locale, System.Data.SqlTypes.SqlCompareOptions compareOptions, bool useServerDefault, bool isUniqueKey, System.Data.SqlClient.SortOrder columnSortOrder, int sortOrdinal);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string name, valuetype System.Data.SqlDbType dbType, int64 maxLength, int64 locale, valuetype System.Data.SqlTypes.SqlCompareOptions compareOptions, bool useServerDefault, bool isUniqueKey, valuetype System.Data.SqlClient.SortOrder columnSortOrder, int32 sortOrdinal) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.SqlServer.Server.SqlMetaData.#ctor(System.String,System.Data.SqlDbType,System.Int64,System.Int64,System.Data.SqlTypes.SqlCompareOptions,System.Boolean,System.Boolean,System.Data.SqlClient.SortOrder,System.Int32)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (name As String, dbType As SqlDbType, maxLength As Long, locale As Long, compareOptions As SqlCompareOptions, useServerDefault As Boolean, isUniqueKey As Boolean, columnSortOrder As SortOrder, sortOrdinal As Integer)" />
<MemberSignature Language="F#" Value="new Microsoft.SqlServer.Server.SqlMetaData : string * System.Data.SqlDbType * int64 * int64 * System.Data.SqlTypes.SqlCompareOptions * bool * bool * System.Data.SqlClient.SortOrder * int -> Microsoft.SqlServer.Server.SqlMetaData" Usage="new Microsoft.SqlServer.Server.SqlMetaData (name, dbType, maxLength, locale, compareOptions, useServerDefault, isUniqueKey, columnSortOrder, sortOrdinal)" />
<MemberSignature Language="C++ CLI" Value="public:
 SqlMetaData(System::String ^ name, System::Data::SqlDbType dbType, long maxLength, long locale, System::Data::SqlTypes::SqlCompareOptions compareOptions, bool useServerDefault, bool isUniqueKey, System::Data::SqlClient::SortOrder columnSortOrder, int sortOrdinal);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Data.SqlClient</AssemblyName>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>4.6.1.6</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Data</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="name" Type="System.String" />
<Parameter Name="dbType" Type="System.Data.SqlDbType" />
<Parameter Name="maxLength" Type="System.Int64" />
<Parameter Name="locale" Type="System.Int64" />
<Parameter Name="compareOptions" Type="System.Data.SqlTypes.SqlCompareOptions" />
<Parameter Name="useServerDefault" Type="System.Boolean" />
<Parameter Name="isUniqueKey" Type="System.Boolean" />
<Parameter Name="columnSortOrder" Type="System.Data.SqlClient.SortOrder" />
<Parameter Name="sortOrdinal" Type="System.Int32" />
</Parameters>
<Docs>
<param name="name">The name of the column.</param>
<param name="dbType">The SQL Server type of the parameter or column.</param>
<param name="maxLength">The maximum length of the specified type.</param>
<param name="locale">The locale ID of the parameter or column.</param>
<param name="compareOptions">The comparison rules of the parameter or column.</param>
<param name="useServerDefault">Specifies whether this column should use the default server value.</param>
<param name="isUniqueKey">Specifies if the column in the table-valued parameter is unique.</param>
<param name="columnSortOrder">Specifies the sort order for a column.</param>
<param name="sortOrdinal">Specifies the ordinal of the sort column.</param>
<summary>Initializes a new instance of the <see cref="T:Microsoft.SqlServer.Server.SqlMetaData" /> class with the specified column name, type, maximum length, locale, compare options, and server default. This form of the constructor supports table-valued parameters by allowing you to specify if the column is unique in the table-valued parameter, the sort order for the column, and the ordinal of the sort column.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
For more information, see [Table-Valued Parameters](/dotnet/framework/data/adonet/sql/table-valued-parameters).
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public SqlMetaData (string name, System.Data.SqlDbType dbType, string database, string owningSchema, string objectName, bool useServerDefault, bool isUniqueKey, System.Data.SqlClient.SortOrder columnSortOrder, int sortOrdinal);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string name, valuetype System.Data.SqlDbType dbType, string database, string owningSchema, string objectName, bool useServerDefault, bool isUniqueKey, valuetype System.Data.SqlClient.SortOrder columnSortOrder, int32 sortOrdinal) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.SqlServer.Server.SqlMetaData.#ctor(System.String,System.Data.SqlDbType,System.String,System.String,System.String,System.Boolean,System.Boolean,System.Data.SqlClient.SortOrder,System.Int32)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (name As String, dbType As SqlDbType, database As String, owningSchema As String, objectName As String, useServerDefault As Boolean, isUniqueKey As Boolean, columnSortOrder As SortOrder, sortOrdinal As Integer)" />
<MemberSignature Language="F#" Value="new Microsoft.SqlServer.Server.SqlMetaData : string * System.Data.SqlDbType * string * string * string * bool * bool * System.Data.SqlClient.SortOrder * int -> Microsoft.SqlServer.Server.SqlMetaData" Usage="new Microsoft.SqlServer.Server.SqlMetaData (name, dbType, database, owningSchema, objectName, useServerDefault, isUniqueKey, columnSortOrder, sortOrdinal)" />
<MemberSignature Language="C++ CLI" Value="public:
 SqlMetaData(System::String ^ name, System::Data::SqlDbType dbType, System::String ^ database, System::String ^ owningSchema, System::String ^ objectName, bool useServerDefault, bool isUniqueKey, System::Data::SqlClient::SortOrder columnSortOrder, int sortOrdinal);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Data.SqlClient</AssemblyName>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>4.6.1.6</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Data</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="name" Type="System.String" />
<Parameter Name="dbType" Type="System.Data.SqlDbType" />
<Parameter Name="database" Type="System.String" />
<Parameter Name="owningSchema" Type="System.String" />
<Parameter Name="objectName" Type="System.String" />
<Parameter Name="useServerDefault" Type="System.Boolean" />
<Parameter Name="isUniqueKey" Type="System.Boolean" />
<Parameter Name="columnSortOrder" Type="System.Data.SqlClient.SortOrder" />
<Parameter Name="sortOrdinal" Type="System.Int32" />
</Parameters>
<Docs>
<param name="name">The name of the column.</param>
<param name="dbType">The SQL Server type of the parameter or column.</param>
<param name="database">The database name of the XML schema collection of a typed XML instance.</param>
<param name="owningSchema">The relational schema name of the XML schema collection of a typed XML instance.</param>
<param name="objectName">The name of the XML schema collection of a typed XML instance.</param>
<param name="useServerDefault">Specifies whether this column should use the default server value.</param>
<param name="isUniqueKey">Specifies if the column in the table-valued parameter is unique.</param>
<param name="columnSortOrder">Specifies the sort order for a column.</param>
<param name="sortOrdinal">Specifies the ordinal of the sort column.</param>
<summary>Initializes a new instance of the <see cref="T:Microsoft.SqlServer.Server.SqlMetaData" /> class with the specified column name, database name, owning schema, object name, and default server. This form of the constructor supports table-valued parameters by allowing you to specify if the column is unique in the table-valued parameter, the sort order for the column, and the ordinal of the sort column.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
For more information, see [Table-Valued Parameters](/dotnet/framework/data/adonet/sql/table-valued-parameters).
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public SqlMetaData (string name, System.Data.SqlDbType dbType, long maxLength, byte precision, byte scale, long localeId, System.Data.SqlTypes.SqlCompareOptions compareOptions, Type userDefinedType, bool useServerDefault, bool isUniqueKey, System.Data.SqlClient.SortOrder columnSortOrder, int sortOrdinal);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string name, valuetype System.Data.SqlDbType dbType, int64 maxLength, unsigned int8 precision, unsigned int8 scale, int64 localeId, valuetype System.Data.SqlTypes.SqlCompareOptions compareOptions, class System.Type userDefinedType, bool useServerDefault, bool isUniqueKey, valuetype System.Data.SqlClient.SortOrder columnSortOrder, int32 sortOrdinal) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.SqlServer.Server.SqlMetaData.#ctor(System.String,System.Data.SqlDbType,System.Int64,System.Byte,System.Byte,System.Int64,System.Data.SqlTypes.SqlCompareOptions,System.Type,System.Boolean,System.Boolean,System.Data.SqlClient.SortOrder,System.Int32)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (name As String, dbType As SqlDbType, maxLength As Long, precision As Byte, scale As Byte, localeId As Long, compareOptions As SqlCompareOptions, userDefinedType As Type, useServerDefault As Boolean, isUniqueKey As Boolean, columnSortOrder As SortOrder, sortOrdinal As Integer)" />
<MemberSignature Language="F#" Value="new Microsoft.SqlServer.Server.SqlMetaData : string * System.Data.SqlDbType * int64 * byte * byte * int64 * System.Data.SqlTypes.SqlCompareOptions * Type * bool * bool * System.Data.SqlClient.SortOrder * int -> Microsoft.SqlServer.Server.SqlMetaData" Usage="new Microsoft.SqlServer.Server.SqlMetaData (name, dbType, maxLength, precision, scale, localeId, compareOptions, userDefinedType, useServerDefault, isUniqueKey, columnSortOrder, sortOrdinal)" />
<MemberSignature Language="C++ CLI" Value="public:
 SqlMetaData(System::String ^ name, System::Data::SqlDbType dbType, long maxLength, System::Byte precision, System::Byte scale, long localeId, System::Data::SqlTypes::SqlCompareOptions compareOptions, Type ^ userDefinedType, bool useServerDefault, bool isUniqueKey, System::Data::SqlClient::SortOrder columnSortOrder, int sortOrdinal);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Data.SqlClient</AssemblyName>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>4.6.1.6</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Data</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="name" Type="System.String" />
<Parameter Name="dbType" Type="System.Data.SqlDbType" />
<Parameter Name="maxLength" Type="System.Int64" />
<Parameter Name="precision" Type="System.Byte" />
<Parameter Name="scale" Type="System.Byte" />
<Parameter Name="localeId" Type="System.Int64" />
<Parameter Name="compareOptions" Type="System.Data.SqlTypes.SqlCompareOptions" />
<Parameter Name="userDefinedType" Type="System.Type" />
<Parameter Name="useServerDefault" Type="System.Boolean" />
<Parameter Name="isUniqueKey" Type="System.Boolean" />
<Parameter Name="columnSortOrder" Type="System.Data.SqlClient.SortOrder" />
<Parameter Name="sortOrdinal" Type="System.Int32" />
</Parameters>
<Docs>
<param name="name">The name of the column.</param>
<param name="dbType">The SQL Server type of the parameter or column.</param>
<param name="maxLength">The maximum length of the specified type.</param>
<param name="precision">The precision of the parameter or column.</param>
<param name="scale">The scale of the parameter or column.</param>
<param name="localeId">The locale ID of the parameter or column.</param>
<param name="compareOptions">The comparison rules of the parameter or column.</param>
<param name="userDefinedType">A <see cref="T:System.Type" /> instance that points to the UDT.</param>
<param name="useServerDefault">Specifies whether this column should use the default server value.</param>
<param name="isUniqueKey">Specifies if the column in the table-valued parameter is unique.</param>
<param name="columnSortOrder">Specifies the sort order for a column.</param>
<param name="sortOrdinal">Specifies the ordinal of the sort column.</param>
<summary>Initializes a new instance of the <see cref="T:Microsoft.SqlServer.Server.SqlMetaData" /> class with the specified column name, type, maximum length, precision, scale, locale ID, compare options, and user-defined type (UDT). This form of the constructor supports table-valued parameters by allowing you to specify if the column is unique in the table-valued parameter, the sort order for the column, and the ordinal of the sort column.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
For more information, see [Table-Valued Parameters](/dotnet/framework/data/adonet/sql/table-valued-parameters).
]]></format>
</remarks>
</Docs>
</Member>
<MemberGroup MemberName="Adjust">
<AssemblyInfo>
<AssemblyName>System.Data.SqlClient</AssemblyName>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Validates the specified value against the metadata, and adjusts the value if necessary.</summary>
</Docs>
</MemberGroup>
<Member MemberName="Adjust">
<MemberSignature Language="C#" Value="public bool Adjust (bool value);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance bool Adjust(bool value) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.SqlServer.Server.SqlMetaData.Adjust(System.Boolean)" />
<MemberSignature Language="VB.NET" Value="Public Function Adjust (value As Boolean) As Boolean" />
<MemberSignature Language="F#" Value="member this.Adjust : bool -> bool" Usage="sqlMetaData.Adjust value" />
<MemberSignature Language="C++ CLI" Value="public:
 bool Adjust(bool value);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Data.SqlClient</AssemblyName>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>4.6.1.6</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Data</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Boolean" />
</Parameters>
<Docs>
<param name="value">The value to validate against the <see cref="T:Microsoft.SqlServer.Server.SqlMetaData" /> instance.</param>
<summary>Validates the specified <see cref="T:System.Boolean" /> value against the metadata, and adjusts the value if necessary.</summary>
<returns>The adjusted value as a <see cref="T:System.Boolean" />.</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentException">
<paramref name="value" /> does not match the <see cref="T:Microsoft.SqlServer.Server.SqlMetaData" /> type, or <paramref name="value" /> could not be adjusted.</exception>
</Docs>
</Member>
<Member MemberName="Adjust">
<MemberSignature Language="C#" Value="public byte Adjust (byte value);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance unsigned int8 Adjust(unsigned int8 value) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.SqlServer.Server.SqlMetaData.Adjust(System.Byte)" />
<MemberSignature Language="VB.NET" Value="Public Function Adjust (value As Byte) As Byte" />
<MemberSignature Language="F#" Value="member this.Adjust : byte -> byte" Usage="sqlMetaData.Adjust value" />
<MemberSignature Language="C++ CLI" Value="public:
 System::Byte Adjust(System::Byte value);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Data.SqlClient</AssemblyName>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>4.6.1.6</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Data</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Byte</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Byte" />
</Parameters>
<Docs>
<param name="value">The value to validate against the <see cref="T:Microsoft.SqlServer.Server.SqlMetaData" /> instance.</param>
<summary>Validates the specified <see cref="T:System.Byte" /> value against the metadata, and adjusts the value if necessary.</summary>
<returns>The adjusted value as a <see cref="T:System.Byte" />.</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentException">
<paramref name="value" /> does not match the <see cref="T:Microsoft.SqlServer.Server.SqlMetaData" /> type, or <paramref name="value" /> could not be adjusted.</exception>
</Docs>
</Member>
<Member MemberName="Adjust">
<MemberSignature Language="C#" Value="public byte[] Adjust (byte[] value);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance unsigned int8[] Adjust(unsigned int8[] value) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.SqlServer.Server.SqlMetaData.Adjust(System.Byte[])" />
<MemberSignature Language="VB.NET" Value="Public Function Adjust (value As Byte()) As Byte()" />
<MemberSignature Language="F#" Value="member this.Adjust : byte[] -> byte[]" Usage="sqlMetaData.Adjust value" />
<MemberSignature Language="C++ CLI" Value="public:
 cli::array <System::Byte> ^ Adjust(cli::array <System::Byte> ^ value);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Data.SqlClient</AssemblyName>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>4.6.1.6</AssemblyVersion>