36 references to UnlimitedMaxLengthIndicator
System.Data (36)
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (14)
165
return metaData.MaxLength == SmiMetaData.
UnlimitedMaxLengthIndicator
||
585
if (SmiMetaData.
UnlimitedMaxLengthIndicator
!= maxLength) {
609
maxLength = SmiMetaData.
UnlimitedMaxLengthIndicator
;
615
maxLength = SmiMetaData.
UnlimitedMaxLengthIndicator
;
621
maxLength = SmiMetaData.
UnlimitedMaxLengthIndicator
;
798
maxLength = SmiMetaData.
UnlimitedMaxLengthIndicator
;
808
maxLength = SmiMetaData.
UnlimitedMaxLengthIndicator
;
812
(maxLength != SmiMetaData.
UnlimitedMaxLengthIndicator
||
828
maxLength = SmiMetaData.
UnlimitedMaxLengthIndicator
;
838
maxLength = SmiMetaData.
UnlimitedMaxLengthIndicator
;
842
(maxLength != SmiMetaData.
UnlimitedMaxLengthIndicator
||
858
maxLength = SmiMetaData.
UnlimitedMaxLengthIndicator
;
868
maxLength = SmiMetaData.
UnlimitedMaxLengthIndicator
;
872
(maxLength != SmiMetaData.
UnlimitedMaxLengthIndicator
||
fx\src\data\Microsoft\SqlServer\Server\SmiMetaData.cs (8)
105
internal static readonly SmiMetaData DefaultImage = new SmiMetaData(SqlDbType.Image,
UnlimitedMaxLengthIndicator
,0, 0, SqlCompareOptions.None); // SqlDbType.Image
109
internal static readonly SmiMetaData DefaultNText_NoCollation = new SmiMetaData(SqlDbType.NText,
UnlimitedMaxLengthIndicator
,0, 0, DefaultStringCompareOptions);// SqlDbType.NText
116
internal static readonly SmiMetaData DefaultText_NoCollation = new SmiMetaData(SqlDbType.Text,
UnlimitedMaxLengthIndicator
,0, 0, DefaultStringCompareOptions);// SqlDbType.Text
122
internal static readonly SmiMetaData DefaultXml = new SmiMetaData(SqlDbType.Xml,
UnlimitedMaxLengthIndicator
,0, 0, DefaultStringCompareOptions);// SqlDbType.Xml
392
Debug.Assert((null != userDefinedType) || (0 <= maxLength ||
UnlimitedMaxLengthIndicator
== maxLength),
483
result =
UnlimitedMaxLengthIndicator
== maxLength || ( 0 < maxLength && MaxBinaryLength >= maxLength );
492
result =
UnlimitedMaxLengthIndicator
== maxLength || ( 0 < maxLength && MaxUnicodeCharacters >= maxLength );
495
result =
UnlimitedMaxLengthIndicator
== maxLength || ( 0 < maxLength && MaxANSICharacters >= maxLength );
fx\src\data\Microsoft\SqlServer\Server\SqlDataRecord.cs (1)
31
static readonly SmiMetaData __maxNVarCharForXml = new SmiMetaData(SqlDbType.NVarChar, SmiMetaData.
UnlimitedMaxLengthIndicator
,
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (2)
35
const int NoLengthLimit = (int)SmiMetaData.
UnlimitedMaxLengthIndicator
; // make sure we use the same constant
113
if ( (SmiMetaData.
UnlimitedMaxLengthIndicator
!= metaData.MaxLength &&
fx\src\data\System\Data\SqlClient\SqlCommand.cs (3)
6268
if (size != 0 && size != SmiMetaData.
UnlimitedMaxLengthIndicator
&& !param.SizeInferred) {
6286
if (size > 0 && size != Int32.MaxValue && requestMetaData[index].MaxLength == SmiMetaData.
UnlimitedMaxLengthIndicator
) {
6293
if (size > 0 && size != Int32.MaxValue/2 && requestMetaData[index].MaxLength == SmiMetaData.
UnlimitedMaxLengthIndicator
) {
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (1)
309
length = (int) SmiMetaData.
UnlimitedMaxLengthIndicator
;
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (1)
555
if ( SmiMetaData.
UnlimitedMaxLengthIndicator
== maxLength ) {
fx\src\data\System\Data\SqlClient\SqlParameter.cs (1)
1584
Size = (int)(SmiMetaData.
UnlimitedMaxLengthIndicator
);
fx\src\data\System\Data\SqlClient\TdsParser.cs (5)
8886
WriteUnsignedShort(unchecked((ushort)MSS.SmiMetaData.
UnlimitedMaxLengthIndicator
), stateObj);
8904
WriteUnsignedShort(unchecked((ushort)MSS.SmiMetaData.
UnlimitedMaxLengthIndicator
), stateObj);
8910
if (MSS.SmiMetaData.
UnlimitedMaxLengthIndicator
== metaData.MaxLength) {
8911
WriteUnsignedShort(unchecked((ushort)MSS.SmiMetaData.
UnlimitedMaxLengthIndicator
), stateObj);
8941
WriteUnsignedShort(unchecked((ushort)MSS.SmiMetaData.
UnlimitedMaxLengthIndicator
), stateObj);