54 references to MaxLength
System.Data (54)
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (2)
556
source.
MaxLength
,
574
firstMd.MaxLength == secondMd.
MaxLength
&&
fx\src\data\System\Data\Sql\SqlMetaData.cs (52)
742
if (value.Length <
MaxLength
)
743
value = value.PadRight((int)
MaxLength
);
758
if (value.Length >
MaxLength
&& Max !=
MaxLength
)
759
value = value.Remove((int)
MaxLength
, (int)(value.Length -
MaxLength
));
878
if (value.Value.Length <
MaxLength
)
879
return new SqlString(value.Value.PadRight((int)
MaxLength
));
893
if (value.Value.Length >
MaxLength
&& Max !=
MaxLength
)
894
value = new SqlString(value.Value.Remove((int)
MaxLength
, (int)(value.Value.Length -
MaxLength
)));
904
if (value.Length <
MaxLength
) {
906
byte[] rgbNewValue = new byte[
MaxLength
];
923
if (value.Length >
MaxLength
&& Max !=
MaxLength
) {
925
byte[] rgbNewValue = new byte[
MaxLength
];
926
Array.Copy(rgbValue, rgbNewValue, (int)
MaxLength
);
946
if (oldLength <
MaxLength
) {
948
if (value.MaxLength <
MaxLength
) {
949
char[] rgchNew = new char[ (int)
MaxLength
];
956
for(long i=oldLength; i<
MaxLength
; i++)
959
value.SetLength(
MaxLength
);
974
if (value.Length >
MaxLength
&& Max !=
MaxLength
)
975
value.SetLength(
MaxLength
);
988
if (oldLength <
MaxLength
)
991
if (value.MaxLength <
MaxLength
)
993
byte[] rgbNew = new byte[
MaxLength
];
1001
value.SetLength(
MaxLength
);
1016
if (value.Length >
MaxLength
&& Max !=
MaxLength
)
1017
value.SetLength(
MaxLength
);
1203
maxLen = sxm_rgDefaults[(int)SqlDbType.VarBinary].
MaxLength
;
1259
smd = new SqlMetaData(name, SqlDbType.NVarChar, sxm_rgDefaults[(int)SqlDbType.NVarChar].
MaxLength
);
1275
maxLen = sxm_rgDefaults[(int)SqlDbType.NVarChar].
MaxLength
;
1290
maxLen = sxm_rgDefaults[(int)SqlDbType.VarBinary].
MaxLength
;
1331
if (value.Length <
MaxLength
)
1333
byte[] rgbNewValue = new byte[
MaxLength
];
1351
if (value.Length >
MaxLength
&& Max !=
MaxLength
)
1353
byte[] rgbNewValue = new byte[
MaxLength
];
1354
Array.Copy(value, rgbNewValue, (int)
MaxLength
);
1365
if (1 !=
MaxLength
)
1368
else if ( (1 >
MaxLength
) || // char must have max length of at least 1
1387
if (oldLength <
MaxLength
)
1389
char[] rgchNew = new char[ (int)
MaxLength
];
1411
if (value.Length >
MaxLength
&& Max !=
MaxLength
)
1413
char[] rgchNewValue = new char[
MaxLength
];
1414
Array.Copy(value, rgchNewValue, (int)
MaxLength
);
1553
m_lMaxLength = smdDflt.
MaxLength
;