SqlMetaData.Adjust SqlMetaData.Adjust SqlMetaData.Adjust SqlMetaData.Adjust Method

Definition

根据元数据验证指定的值,并在需要时调整该值。 Validates the specified value against the metadata, and adjusts the value if necessary.

Overloads

Adjust(Double) Adjust(Double) Adjust(Double) Adjust(Double)

根据元数据验证指定的 Double 值,并在需要时调整该值。 Validates the specified Double value against the metadata, and adjusts the value if necessary.

Adjust(SqlString) Adjust(SqlString) Adjust(SqlString) Adjust(SqlString)

根据元数据验证指定的 SqlString 值,并在需要时调整该值。 Validates the specified SqlString value against the metadata, and adjusts the value if necessary.

Adjust(SqlXml) Adjust(SqlXml) Adjust(SqlXml) Adjust(SqlXml)

根据元数据验证指定的 SqlXml 值,并在需要时调整该值。 Validates the specified SqlXml value against the metadata, and adjusts the value if necessary.

Adjust(DateTime) Adjust(DateTime) Adjust(DateTime) Adjust(DateTime)

根据元数据验证指定的 DateTime 值,并在需要时调整该值。 Validates the specified DateTime value against the metadata, and adjusts the value if necessary.

Adjust(DateTimeOffset) Adjust(DateTimeOffset) Adjust(DateTimeOffset) Adjust(DateTimeOffset)

根据元数据验证指定的 DateTimeOffset 值,并在需要时调整该值。 Validates the specified DateTimeOffset value against the metadata, and adjusts the value if necessary.

Adjust(Decimal) Adjust(Decimal) Adjust(Decimal) Adjust(Decimal)

根据元数据验证指定的 Decimal 值,并在需要时调整该值。 Validates the specified Decimal value against the metadata, and adjusts the value if necessary.

Adjust(Guid) Adjust(Guid) Adjust(Guid) Adjust(Guid)

根据元数据验证指定的 Guid 值,并在需要时调整该值。 Validates the specified Guid value against the metadata, and adjusts the value if necessary.

Adjust(TimeSpan) Adjust(TimeSpan) Adjust(TimeSpan) Adjust(TimeSpan)

根据元数据验证指定的 TimeSpan 值,并在需要时调整该值。 Validates the specified TimeSpan value against the metadata, and adjusts the value if necessary.

Adjust(Int32) Adjust(Int32) Adjust(Int32) Adjust(Int32)

根据元数据验证指定的 Int32 值,并在需要时调整该值。 Validates the specified Int32 value against the metadata, and adjusts the value if necessary.

Adjust(Int64) Adjust(Int64) Adjust(Int64) Adjust(Int64)

根据元数据验证指定的 Int64 值,并在需要时调整该值。 Validates the specified Int64 value against the metadata, and adjusts the value if necessary.

Adjust(Object) Adjust(Object) Adjust(Object) Adjust(Object)

根据元数据验证指定的 Object 值,并在需要时调整该值。 Validates the specified Object value against the metadata, and adjusts the value if necessary.

Adjust(Single) Adjust(Single) Adjust(Single) Adjust(Single)

根据元数据验证指定的 Single 值,并在需要时调整该值。 Validates the specified Single value against the metadata, and adjusts the value if necessary.

Adjust(String) Adjust(String) Adjust(String) Adjust(String)

根据元数据验证指定的 String 值,并在需要时调整该值。 Validates the specified String value against the metadata, and adjusts the value if necessary.

Adjust(SqlMoney) Adjust(SqlMoney) Adjust(SqlMoney) Adjust(SqlMoney)

根据元数据验证指定的 SqlMoney 值,并在需要时调整该值。 Validates the specified SqlMoney value against the metadata, and adjusts the value if necessary.

Adjust(Int16) Adjust(Int16) Adjust(Int16) Adjust(Int16)

根据元数据验证指定的 Int16 值,并在需要时调整该值。 Validates the specified Int16 value against the metadata, and adjusts the value if necessary.

Adjust(SqlInt64) Adjust(SqlInt64) Adjust(SqlInt64) Adjust(SqlInt64)

根据元数据验证指定的 SqlInt64 值,并在需要时调整该值。 Validates the specified SqlInt64 value against the metadata, and adjusts the value if necessary.

Adjust(SqlSingle) Adjust(SqlSingle) Adjust(SqlSingle) Adjust(SqlSingle)

根据元数据验证指定的 SqlSingle 值,并在需要时调整该值。 Validates the specified SqlSingle value against the metadata, and adjusts the value if necessary.

Adjust(SqlInt16) Adjust(SqlInt16) Adjust(SqlInt16) Adjust(SqlInt16)

根据元数据验证指定的 SqlInt16 值,并在需要时调整该值。 Validates the specified SqlInt16 value against the metadata, and adjusts the value if necessary.

Adjust(Byte) Adjust(Byte) Adjust(Byte) Adjust(Byte)

根据元数据验证指定的 Byte 值,并在需要时调整该值。 Validates the specified Byte value against the metadata, and adjusts the value if necessary.

Adjust(Byte[]) Adjust(Byte[]) Adjust(Byte[]) Adjust(Byte[])

根据元数据验证指定的 Byte 值的数组,并在需要时调整该值。 Validates the specified array of Byte values against the metadata, and adjusts the value if necessary.

Adjust(Char) Adjust(Char) Adjust(Char) Adjust(Char)

根据元数据验证指定的 Char 值,并在需要时调整该值。 Validates the specified Char value against the metadata, and adjusts the value if necessary.

Adjust(Char[]) Adjust(Char[]) Adjust(Char[]) Adjust(Char[])

根据元数据验证指定的 Char 值的数组,并在需要时调整该值。 Validates the specified array of Char values against the metadata, and adjusts the value if necessary.

Adjust(SqlBinary) Adjust(SqlBinary) Adjust(SqlBinary) Adjust(SqlBinary)

根据元数据验证指定的 SqlBinary 值,并在需要时调整该值。 Validates the specified SqlBinary value against the metadata, and adjusts the value if necessary.

Adjust(SqlBoolean) Adjust(SqlBoolean) Adjust(SqlBoolean) Adjust(SqlBoolean)

根据元数据验证指定的 SqlBoolean 值,并在需要时调整该值。 Validates the specified SqlBoolean value against the metadata, and adjusts the value if necessary.

Adjust(Boolean) Adjust(Boolean) Adjust(Boolean) Adjust(Boolean)

根据元数据验证指定的 Boolean 值,并在需要时调整该值。 Validates the specified Boolean value against the metadata, and adjusts the value if necessary.

Adjust(SqlByte) Adjust(SqlByte) Adjust(SqlByte) Adjust(SqlByte)

根据元数据验证指定的 SqlByte 值,并在需要时调整该值。 Validates the specified SqlByte value against the metadata, and adjusts the value if necessary.

Adjust(SqlChars) Adjust(SqlChars) Adjust(SqlChars) Adjust(SqlChars)

根据元数据验证指定的 SqlChars 值,并在需要时调整该值。 Validates the specified SqlChars value against the metadata, and adjusts the value if necessary.

Adjust(SqlDateTime) Adjust(SqlDateTime) Adjust(SqlDateTime) Adjust(SqlDateTime)

根据元数据验证指定的 SqlDateTime 值,并在需要时调整该值。 Validates the specified SqlDateTime value against the metadata, and adjusts the value if necessary.

Adjust(SqlDecimal) Adjust(SqlDecimal) Adjust(SqlDecimal) Adjust(SqlDecimal)

根据元数据验证指定的 SqlDecimal 值,并在需要时调整该值。 Validates the specified SqlDecimal value against the metadata, and adjusts the value if necessary.

Adjust(SqlDouble) Adjust(SqlDouble) Adjust(SqlDouble) Adjust(SqlDouble)

根据元数据验证指定的 SqlDouble 值,并在需要时调整该值。 Validates the specified SqlDouble value against the metadata, and adjusts the value if necessary.

Adjust(SqlGuid) Adjust(SqlGuid) Adjust(SqlGuid) Adjust(SqlGuid)

根据元数据验证指定的 SqlGuid 值,并在需要时调整该值。 Validates the specified SqlGuid value against the metadata, and adjusts the value if necessary.

Adjust(SqlInt32) Adjust(SqlInt32) Adjust(SqlInt32) Adjust(SqlInt32)

根据元数据验证指定的 SqlInt32 值,并在需要时调整该值。 Validates the specified SqlInt32 value against the metadata, and adjusts the value if necessary.

Adjust(SqlBytes) Adjust(SqlBytes) Adjust(SqlBytes) Adjust(SqlBytes)

根据元数据验证指定的 SqlBytes 值,并在需要时调整该值。 Validates the specified SqlBytes value against the metadata, and adjusts the value if necessary.

Adjust(Double) Adjust(Double) Adjust(Double) Adjust(Double)

根据元数据验证指定的 Double 值,并在需要时调整该值。 Validates the specified Double value against the metadata, and adjusts the value if necessary.

public:
 double Adjust(double value);
public double Adjust (double value);
member this.Adjust : double -> double
Public Function Adjust (value As Double) As Double

参数

value
Double Double Double Double

要根据 SqlMetaData 实例进行验证的值。 The value to validate against the SqlMetaData instance.

Returns

作为 Double 的调整后的值。 The adjusted value as a Double.

Exceptions

ValueSqlMetaData 类型不匹配,或者未能调整 value Value does not match the SqlMetaData type, or value could not be adjusted.

Adjust(SqlString) Adjust(SqlString) Adjust(SqlString) Adjust(SqlString)

根据元数据验证指定的 SqlString 值,并在需要时调整该值。 Validates the specified SqlString value against the metadata, and adjusts the value if necessary.

public:
 System::Data::SqlTypes::SqlString Adjust(System::Data::SqlTypes::SqlString value);
public System.Data.SqlTypes.SqlString Adjust (System.Data.SqlTypes.SqlString value);
member this.Adjust : System.Data.SqlTypes.SqlString -> System.Data.SqlTypes.SqlString
Public Function Adjust (value As SqlString) As SqlString

参数

value
SqlString SqlString SqlString SqlString

要根据 SqlMetaData 实例进行验证的值。 The value to validate against the SqlMetaData instance.

Returns

作为 SqlString 的调整后的值。 The adjusted value as a SqlString.

Exceptions

ValueSqlMetaData 类型不匹配,或者未能调整 value Value does not match the SqlMetaData type, or value could not be adjusted.

Adjust(SqlXml) Adjust(SqlXml) Adjust(SqlXml) Adjust(SqlXml)

根据元数据验证指定的 SqlXml 值,并在需要时调整该值。 Validates the specified SqlXml value against the metadata, and adjusts the value if necessary.

public:
 System::Data::SqlTypes::SqlXml ^ Adjust(System::Data::SqlTypes::SqlXml ^ value);
public System.Data.SqlTypes.SqlXml Adjust (System.Data.SqlTypes.SqlXml value);
member this.Adjust : System.Data.SqlTypes.SqlXml -> System.Data.SqlTypes.SqlXml
Public Function Adjust (value As SqlXml) As SqlXml

参数

value
SqlXml SqlXml SqlXml SqlXml

要根据 SqlMetaData 实例进行验证的值。 The value to validate against the SqlMetaData instance.

Returns

作为 SqlXml 的调整后的值。 The adjusted value as a SqlXml.

Exceptions

ValueSqlMetaData 类型不匹配,或者未能调整 value Value does not match the SqlMetaData type, or value could not be adjusted.

Adjust(DateTime) Adjust(DateTime) Adjust(DateTime) Adjust(DateTime)

根据元数据验证指定的 DateTime 值,并在需要时调整该值。 Validates the specified DateTime value against the metadata, and adjusts the value if necessary.

public:
 DateTime Adjust(DateTime value);
public DateTime Adjust (DateTime value);
member this.Adjust : DateTime -> DateTime
Public Function Adjust (value As DateTime) As DateTime

参数

value
DateTime DateTime DateTime DateTime

要根据 SqlMetaData 实例进行验证的值。 The value to validate against the SqlMetaData instance.

Returns

作为 DateTime 的调整后的值。 The adjusted value as a DateTime.

Exceptions

ValueSqlMetaData 类型不匹配,或者未能调整 value Value does not match the SqlMetaData type, or value could not be adjusted.

Adjust(DateTimeOffset) Adjust(DateTimeOffset) Adjust(DateTimeOffset) Adjust(DateTimeOffset)

根据元数据验证指定的 DateTimeOffset 值,并在需要时调整该值。 Validates the specified DateTimeOffset value against the metadata, and adjusts the value if necessary.

public:
 DateTimeOffset Adjust(DateTimeOffset value);
public DateTimeOffset Adjust (DateTimeOffset value);
member this.Adjust : DateTimeOffset -> DateTimeOffset
Public Function Adjust (value As DateTimeOffset) As DateTimeOffset

参数

value
DateTimeOffset DateTimeOffset DateTimeOffset DateTimeOffset

要根据 SqlMetaData 实例进行验证的值。 The value to validate against the SqlMetaData instance.

Returns

作为 DateTimeOffset 值的数组的调整后的值。 The adjusted value as an array of DateTimeOffset values.

Exceptions

ValueSqlMetaData 类型不匹配,或者未能调整 value Value does not match the SqlMetaData type, or value could not be adjusted.

Adjust(Decimal) Adjust(Decimal) Adjust(Decimal) Adjust(Decimal)

根据元数据验证指定的 Decimal 值,并在需要时调整该值。 Validates the specified Decimal value against the metadata, and adjusts the value if necessary.

public:
 System::Decimal Adjust(System::Decimal value);
public decimal Adjust (decimal value);
member this.Adjust : decimal -> decimal
Public Function Adjust (value As Decimal) As Decimal

参数

value
Decimal Decimal Decimal Decimal

要根据 SqlMetaData 实例进行验证的值。 The value to validate against the SqlMetaData instance.

Returns

作为 Decimal 的调整后的值。 The adjusted value as a Decimal.

Exceptions

ValueSqlMetaData 类型不匹配,或者未能调整 value Value does not match the SqlMetaData type, or value could not be adjusted.

Adjust(Guid) Adjust(Guid) Adjust(Guid) Adjust(Guid)

根据元数据验证指定的 Guid 值,并在需要时调整该值。 Validates the specified Guid value against the metadata, and adjusts the value if necessary.

public:
 Guid Adjust(Guid value);
public Guid Adjust (Guid value);
member this.Adjust : Guid -> Guid
Public Function Adjust (value As Guid) As Guid

参数

value
Guid Guid Guid Guid

要根据 SqlMetaData 实例进行验证的值。 The value to validate against the SqlMetaData instance.

Returns

作为 Guid 的调整后的值。 The adjusted value as a Guid.

Exceptions

ValueSqlMetaData 类型不匹配,或者未能调整 value Value does not match the SqlMetaData type, or value could not be adjusted.

Adjust(TimeSpan) Adjust(TimeSpan) Adjust(TimeSpan) Adjust(TimeSpan)

根据元数据验证指定的 TimeSpan 值,并在需要时调整该值。 Validates the specified TimeSpan value against the metadata, and adjusts the value if necessary.

public:
 TimeSpan Adjust(TimeSpan value);
public TimeSpan Adjust (TimeSpan value);
member this.Adjust : TimeSpan -> TimeSpan
Public Function Adjust (value As TimeSpan) As TimeSpan

参数

value
TimeSpan TimeSpan TimeSpan TimeSpan

要根据 SqlMetaData 实例进行验证的值。 The value to validate against the SqlMetaData instance.

Returns

作为 TimeSpan 值的数组的调整后的值。 The adjusted value as an array of TimeSpan values.

Exceptions

ValueSqlMetaData 类型不匹配,或者未能调整 value Value does not match the SqlMetaData type, or value could not be adjusted.

Adjust(Int32) Adjust(Int32) Adjust(Int32) Adjust(Int32)

根据元数据验证指定的 Int32 值,并在需要时调整该值。 Validates the specified Int32 value against the metadata, and adjusts the value if necessary.

public:
 int Adjust(int value);
public int Adjust (int value);
member this.Adjust : int -> int
Public Function Adjust (value As Integer) As Integer

参数

value
Int32 Int32 Int32 Int32

要根据 SqlMetaData 实例进行验证的值。 The value to validate against the SqlMetaData instance.

Returns

作为 Int32 的调整后的值。 The adjusted value as a Int32.

Exceptions

ValueSqlMetaData 类型不匹配,或者未能调整 value Value does not match the SqlMetaData type, or value could not be adjusted.

Adjust(Int64) Adjust(Int64) Adjust(Int64) Adjust(Int64)

根据元数据验证指定的 Int64 值,并在需要时调整该值。 Validates the specified Int64 value against the metadata, and adjusts the value if necessary.

public:
 long Adjust(long value);
public long Adjust (long value);
member this.Adjust : int64 -> int64
Public Function Adjust (value As Long) As Long

参数

value
Int64 Int64 Int64 Int64

要根据 SqlMetaData 实例进行验证的值。 The value to validate against the SqlMetaData instance.

Returns

作为 Int64 的调整后的值。 The adjusted value as a Int64.

Exceptions

ValueSqlMetaData 类型不匹配,或者未能调整 value Value does not match the SqlMetaData type, or value could not be adjusted.

Adjust(Object) Adjust(Object) Adjust(Object) Adjust(Object)

根据元数据验证指定的 Object 值,并在需要时调整该值。 Validates the specified Object value against the metadata, and adjusts the value if necessary.

public:
 System::Object ^ Adjust(System::Object ^ value);
public object Adjust (object value);
member this.Adjust : obj -> obj
Public Function Adjust (value As Object) As Object

参数

value
Object Object Object Object

要根据 SqlMetaData 实例进行验证的值。 The value to validate against the SqlMetaData instance.

Returns

作为 Object 的调整后的值。 The adjusted value as a Object.

Exceptions

ValueSqlMetaData 类型不匹配,或者未能调整 value Value does not match the SqlMetaData type, or value could not be adjusted.

Adjust(Single) Adjust(Single) Adjust(Single) Adjust(Single)

根据元数据验证指定的 Single 值,并在需要时调整该值。 Validates the specified Single value against the metadata, and adjusts the value if necessary.

public:
 float Adjust(float value);
public float Adjust (float value);
member this.Adjust : single -> single
Public Function Adjust (value As Single) As Single

参数

value
Single Single Single Single

要根据 SqlMetaData 实例进行验证的值。 The value to validate against the SqlMetaData instance.

Returns

作为 Single 的调整后的值。 The adjusted value as a Single.

Exceptions

ValueSqlMetaData 类型不匹配,或者未能调整 value Value does not match the SqlMetaData type, or value could not be adjusted.

Adjust(String) Adjust(String) Adjust(String) Adjust(String)

根据元数据验证指定的 String 值,并在需要时调整该值。 Validates the specified String value against the metadata, and adjusts the value if necessary.

public:
 System::String ^ Adjust(System::String ^ value);
public string Adjust (string value);
member this.Adjust : string -> string
Public Function Adjust (value As String) As String

参数

value
String String String String

要根据 SqlMetaData 实例进行验证的值。 The value to validate against the SqlMetaData instance.

Returns

作为 String 的调整后的值。 The adjusted value as a String.

Exceptions

ValueSqlMetaData 类型不匹配,或者未能调整 value Value does not match the SqlMetaData type, or value could not be adjusted.

Adjust(SqlMoney) Adjust(SqlMoney) Adjust(SqlMoney) Adjust(SqlMoney)

根据元数据验证指定的 SqlMoney 值,并在需要时调整该值。 Validates the specified SqlMoney value against the metadata, and adjusts the value if necessary.

public:
 System::Data::SqlTypes::SqlMoney Adjust(System::Data::SqlTypes::SqlMoney value);
public System.Data.SqlTypes.SqlMoney Adjust (System.Data.SqlTypes.SqlMoney value);
member this.Adjust : System.Data.SqlTypes.SqlMoney -> System.Data.SqlTypes.SqlMoney
Public Function Adjust (value As SqlMoney) As SqlMoney

参数

value
SqlMoney SqlMoney SqlMoney SqlMoney

要根据 SqlMetaData 实例进行验证的值。 The value to validate against the SqlMetaData instance.

Returns

作为 SqlMoney 的调整后的值。 The adjusted value as a SqlMoney.

Exceptions

ValueSqlMetaData 类型不匹配,或者未能调整 value Value does not match the SqlMetaData type, or value could not be adjusted.

Adjust(Int16) Adjust(Int16) Adjust(Int16) Adjust(Int16)

根据元数据验证指定的 Int16 值,并在需要时调整该值。 Validates the specified Int16 value against the metadata, and adjusts the value if necessary.

public:
 short Adjust(short value);
public short Adjust (short value);
member this.Adjust : int16 -> int16
Public Function Adjust (value As Short) As Short

参数

value
Int16 Int16 Int16 Int16

要根据 SqlMetaData 实例进行验证的值。 The value to validate against the SqlMetaData instance.

Returns

作为 Int16 的调整后的值。 The adjusted value as a Int16.

Exceptions

ValueSqlMetaData 类型不匹配,或者未能调整 value Value does not match the SqlMetaData type, or value could not be adjusted.

Adjust(SqlInt64) Adjust(SqlInt64) Adjust(SqlInt64) Adjust(SqlInt64)

根据元数据验证指定的 SqlInt64 值,并在需要时调整该值。 Validates the specified SqlInt64 value against the metadata, and adjusts the value if necessary.

public:
 System::Data::SqlTypes::SqlInt64 Adjust(System::Data::SqlTypes::SqlInt64 value);
public System.Data.SqlTypes.SqlInt64 Adjust (System.Data.SqlTypes.SqlInt64 value);
member this.Adjust : System.Data.SqlTypes.SqlInt64 -> System.Data.SqlTypes.SqlInt64
Public Function Adjust (value As SqlInt64) As SqlInt64

参数

value
SqlInt64 SqlInt64 SqlInt64 SqlInt64

要根据 SqlMetaData 实例进行验证的值。 The value to validate against the SqlMetaData instance.

Returns

作为 SqlInt64 的调整后的值。 The adjusted value as a SqlInt64.

Exceptions

ValueSqlMetaData 类型不匹配,或者未能调整 value Value does not match the SqlMetaData type, or value could not be adjusted.

Adjust(SqlSingle) Adjust(SqlSingle) Adjust(SqlSingle) Adjust(SqlSingle)

根据元数据验证指定的 SqlSingle 值,并在需要时调整该值。 Validates the specified SqlSingle value against the metadata, and adjusts the value if necessary.

public:
 System::Data::SqlTypes::SqlSingle Adjust(System::Data::SqlTypes::SqlSingle value);
public System.Data.SqlTypes.SqlSingle Adjust (System.Data.SqlTypes.SqlSingle value);
member this.Adjust : System.Data.SqlTypes.SqlSingle -> System.Data.SqlTypes.SqlSingle
Public Function Adjust (value As SqlSingle) As SqlSingle

参数

value
SqlSingle SqlSingle SqlSingle SqlSingle

要根据 SqlMetaData 实例进行验证的值。 The value to validate against the SqlMetaData instance.

Returns

作为 SqlSingle 的调整后的值。 The adjusted value as a SqlSingle.

Exceptions

ValueSqlMetaData 类型不匹配,或者未能调整 value Value does not match the SqlMetaData type, or value could not be adjusted.

Adjust(SqlInt16) Adjust(SqlInt16) Adjust(SqlInt16) Adjust(SqlInt16)

根据元数据验证指定的 SqlInt16 值,并在需要时调整该值。 Validates the specified SqlInt16 value against the metadata, and adjusts the value if necessary.

public:
 System::Data::SqlTypes::SqlInt16 Adjust(System::Data::SqlTypes::SqlInt16 value);
public System.Data.SqlTypes.SqlInt16 Adjust (System.Data.SqlTypes.SqlInt16 value);
member this.Adjust : System.Data.SqlTypes.SqlInt16 -> System.Data.SqlTypes.SqlInt16
Public Function Adjust (value As SqlInt16) As SqlInt16

参数

value
SqlInt16 SqlInt16 SqlInt16 SqlInt16

要根据 SqlMetaData 实例进行验证的值。 The value to validate against the SqlMetaData instance.

Returns

作为 SqlInt16 的调整后的值。 The adjusted value as a SqlInt16.

Exceptions

ValueSqlMetaData 类型不匹配,或者未能调整 value Value does not match the SqlMetaData type, or value could not be adjusted.

Adjust(Byte) Adjust(Byte) Adjust(Byte) Adjust(Byte)

根据元数据验证指定的 Byte 值,并在需要时调整该值。 Validates the specified Byte value against the metadata, and adjusts the value if necessary.

public:
 System::Byte Adjust(System::Byte value);
public byte Adjust (byte value);
member this.Adjust : byte -> byte
Public Function Adjust (value As Byte) As Byte

参数

value
Byte Byte Byte Byte

要根据 SqlMetaData 实例进行验证的值。 The value to validate against the SqlMetaData instance.

Returns

作为 Byte 的调整后的值。 The adjusted value as a Byte.

Exceptions

ValueSqlMetaData 类型不匹配,或者未能调整 value Value does not match the SqlMetaData type, or value could not be adjusted.

Adjust(Byte[]) Adjust(Byte[]) Adjust(Byte[]) Adjust(Byte[])

根据元数据验证指定的 Byte 值的数组,并在需要时调整该值。 Validates the specified array of Byte values against the metadata, and adjusts the value if necessary.

public:
 cli::array <System::Byte> ^ Adjust(cli::array <System::Byte> ^ value);
public byte[] Adjust (byte[] value);
member this.Adjust : byte[] -> byte[]
Public Function Adjust (value As Byte()) As Byte()

参数

value
Byte[]

要根据 SqlMetaData 实例进行验证的值。 The value to validate against the SqlMetaData instance.

Returns

Byte[]

作为 Byte 值的数组的调整后的值。 The adjusted value as an array of Byte values.

Exceptions

ValueSqlMetaData 类型不匹配,或者未能调整 value Value does not match the SqlMetaData type, or value could not be adjusted.

Adjust(Char) Adjust(Char) Adjust(Char) Adjust(Char)

根据元数据验证指定的 Char 值,并在需要时调整该值。 Validates the specified Char value against the metadata, and adjusts the value if necessary.

public:
 char Adjust(char value);
public char Adjust (char value);
member this.Adjust : char -> char
Public Function Adjust (value As Char) As Char

参数

value
Char Char Char Char

要根据 SqlMetaData 实例进行验证的值。 The value to validate against the SqlMetaData instance.

Returns

作为 Char 的调整后的值。 The adjusted value as a Char.

Exceptions

ValueSqlMetaData 类型不匹配,或者未能调整 value Value does not match the SqlMetaData type, or value could not be adjusted.

Adjust(Char[]) Adjust(Char[]) Adjust(Char[]) Adjust(Char[])

根据元数据验证指定的 Char 值的数组,并在需要时调整该值。 Validates the specified array of Char values against the metadata, and adjusts the value if necessary.

public:
 cli::array <char> ^ Adjust(cli::array <char> ^ value);
public char[] Adjust (char[] value);
member this.Adjust : char[] -> char[]
Public Function Adjust (value As Char()) As Char()

参数

value
Char[]

要根据 SqlMetaData 实例进行验证的值。 The value to validate against the SqlMetaData instance.

Returns

Char[]

作为 Char 值的数组的调整后的值。 The adjusted value as an array Char values.

Exceptions

ValueSqlMetaData 类型不匹配,或者未能调整 value Value does not match the SqlMetaData type, or value could not be adjusted.

Adjust(SqlBinary) Adjust(SqlBinary) Adjust(SqlBinary) Adjust(SqlBinary)

根据元数据验证指定的 SqlBinary 值,并在需要时调整该值。 Validates the specified SqlBinary value against the metadata, and adjusts the value if necessary.

public:
 System::Data::SqlTypes::SqlBinary Adjust(System::Data::SqlTypes::SqlBinary value);
public System.Data.SqlTypes.SqlBinary Adjust (System.Data.SqlTypes.SqlBinary value);
member this.Adjust : System.Data.SqlTypes.SqlBinary -> System.Data.SqlTypes.SqlBinary
Public Function Adjust (value As SqlBinary) As SqlBinary

参数

value
SqlBinary SqlBinary SqlBinary SqlBinary

要根据 SqlMetaData 实例进行验证的值。 The value to validate against the SqlMetaData instance.

Returns

作为 SqlBinary 的调整后的值。 The adjusted value as a SqlBinary.

Exceptions

ValueSqlMetaData 类型不匹配,或者未能调整 value Value does not match the SqlMetaData type, or value could not be adjusted.

Adjust(SqlBoolean) Adjust(SqlBoolean) Adjust(SqlBoolean) Adjust(SqlBoolean)

根据元数据验证指定的 SqlBoolean 值,并在需要时调整该值。 Validates the specified SqlBoolean value against the metadata, and adjusts the value if necessary.

public:
 System::Data::SqlTypes::SqlBoolean Adjust(System::Data::SqlTypes::SqlBoolean value);
public System.Data.SqlTypes.SqlBoolean Adjust (System.Data.SqlTypes.SqlBoolean value);
member this.Adjust : System.Data.SqlTypes.SqlBoolean -> System.Data.SqlTypes.SqlBoolean
Public Function Adjust (value As SqlBoolean) As SqlBoolean

参数

value
SqlBoolean SqlBoolean SqlBoolean SqlBoolean

要根据 SqlMetaData 实例进行验证的值。 The value to validate against the SqlMetaData instance.

Returns

作为 SqlBoolean 的调整后的值。 The adjusted value as a SqlBoolean.

Exceptions

ValueSqlMetaData 类型不匹配,或者未能调整 value Value does not match the SqlMetaData type, or value could not be adjusted.

Adjust(Boolean) Adjust(Boolean) Adjust(Boolean) Adjust(Boolean)

根据元数据验证指定的 Boolean 值,并在需要时调整该值。 Validates the specified Boolean value against the metadata, and adjusts the value if necessary.

public:
 bool Adjust(bool value);
public bool Adjust (bool value);
member this.Adjust : bool -> bool
Public Function Adjust (value As Boolean) As Boolean

参数

value
Boolean Boolean Boolean Boolean

要根据 SqlMetaData 实例进行验证的值。 The value to validate against the SqlMetaData instance.

Returns

作为 Boolean 的调整后的值。 The adjusted value as a Boolean.

Exceptions

ValueSqlMetaData 类型不匹配,或者未能调整 value Value does not match the SqlMetaData type, or value could not be adjusted.

Adjust(SqlByte) Adjust(SqlByte) Adjust(SqlByte) Adjust(SqlByte)

根据元数据验证指定的 SqlByte 值,并在需要时调整该值。 Validates the specified SqlByte value against the metadata, and adjusts the value if necessary.

public:
 System::Data::SqlTypes::SqlByte Adjust(System::Data::SqlTypes::SqlByte value);
public System.Data.SqlTypes.SqlByte Adjust (System.Data.SqlTypes.SqlByte value);
member this.Adjust : System.Data.SqlTypes.SqlByte -> System.Data.SqlTypes.SqlByte
Public Function Adjust (value As SqlByte) As SqlByte

参数

value
SqlByte SqlByte SqlByte SqlByte

要根据 SqlMetaData 实例进行验证的值。 The value to validate against the SqlMetaData instance.

Returns

作为 SqlByte 的调整后的值。 The adjusted value as a SqlByte.

Exceptions

ValueSqlMetaData 类型不匹配,或者未能调整 value Value does not match the SqlMetaData type, or value could not be adjusted.

Adjust(SqlChars) Adjust(SqlChars) Adjust(SqlChars) Adjust(SqlChars)

根据元数据验证指定的 SqlChars 值,并在需要时调整该值。 Validates the specified SqlChars value against the metadata, and adjusts the value if necessary.

public:
 System::Data::SqlTypes::SqlChars ^ Adjust(System::Data::SqlTypes::SqlChars ^ value);
public System.Data.SqlTypes.SqlChars Adjust (System.Data.SqlTypes.SqlChars value);
member this.Adjust : System.Data.SqlTypes.SqlChars -> System.Data.SqlTypes.SqlChars
Public Function Adjust (value As SqlChars) As SqlChars

参数

value
SqlChars SqlChars SqlChars SqlChars

要根据 SqlMetaData 实例进行验证的值。 The value to validate against the SqlMetaData instance.

Returns

作为 SqlChars 的调整后的值。 The adjusted value as a SqlChars.

Exceptions

ValueSqlMetaData 类型不匹配,或者未能调整 value Value does not match the SqlMetaData type, or value could not be adjusted.

Adjust(SqlDateTime) Adjust(SqlDateTime) Adjust(SqlDateTime) Adjust(SqlDateTime)

根据元数据验证指定的 SqlDateTime 值,并在需要时调整该值。 Validates the specified SqlDateTime value against the metadata, and adjusts the value if necessary.

public:
 System::Data::SqlTypes::SqlDateTime Adjust(System::Data::SqlTypes::SqlDateTime value);
public System.Data.SqlTypes.SqlDateTime Adjust (System.Data.SqlTypes.SqlDateTime value);
member this.Adjust : System.Data.SqlTypes.SqlDateTime -> System.Data.SqlTypes.SqlDateTime
Public Function Adjust (value As SqlDateTime) As SqlDateTime

参数

value
SqlDateTime SqlDateTime SqlDateTime SqlDateTime

要根据 SqlMetaData 实例进行验证的值。 The value to validate against the SqlMetaData instance.

Returns

作为 SqlDateTime 的调整后的值。 The adjusted value as a SqlDateTime.

Exceptions

ValueSqlMetaData 类型不匹配,或者未能调整 value Value does not match the SqlMetaData type, or value could not be adjusted.

Adjust(SqlDecimal) Adjust(SqlDecimal) Adjust(SqlDecimal) Adjust(SqlDecimal)

根据元数据验证指定的 SqlDecimal 值,并在需要时调整该值。 Validates the specified SqlDecimal value against the metadata, and adjusts the value if necessary.

public:
 System::Data::SqlTypes::SqlDecimal Adjust(System::Data::SqlTypes::SqlDecimal value);
public System.Data.SqlTypes.SqlDecimal Adjust (System.Data.SqlTypes.SqlDecimal value);
member this.Adjust : System.Data.SqlTypes.SqlDecimal -> System.Data.SqlTypes.SqlDecimal
Public Function Adjust (value As SqlDecimal) As SqlDecimal

参数

value
SqlDecimal SqlDecimal SqlDecimal SqlDecimal

要根据 SqlMetaData 实例进行验证的值。 The value to validate against the SqlMetaData instance.

Returns

作为 SqlDecimal 的调整后的值。 The adjusted value as a SqlDecimal.

Exceptions

ValueSqlMetaData 类型不匹配,或者未能调整 value Value does not match the SqlMetaData type, or value could not be adjusted.

Adjust(SqlDouble) Adjust(SqlDouble) Adjust(SqlDouble) Adjust(SqlDouble)

根据元数据验证指定的 SqlDouble 值,并在需要时调整该值。 Validates the specified SqlDouble value against the metadata, and adjusts the value if necessary.

public:
 System::Data::SqlTypes::SqlDouble Adjust(System::Data::SqlTypes::SqlDouble value);
public System.Data.SqlTypes.SqlDouble Adjust (System.Data.SqlTypes.SqlDouble value);
member this.Adjust : System.Data.SqlTypes.SqlDouble -> System.Data.SqlTypes.SqlDouble
Public Function Adjust (value As SqlDouble) As SqlDouble

参数

value
SqlDouble SqlDouble SqlDouble SqlDouble

要根据 SqlMetaData 实例进行验证的值。 The value to validate against the SqlMetaData instance.

Returns

作为 SqlDouble 的调整后的值。 The adjusted value as a SqlDouble.

Exceptions

ValueSqlMetaData 类型不匹配,或者未能调整 value Value does not match the SqlMetaData type, or value could not be adjusted.

Adjust(SqlGuid) Adjust(SqlGuid) Adjust(SqlGuid) Adjust(SqlGuid)

根据元数据验证指定的 SqlGuid 值,并在需要时调整该值。 Validates the specified SqlGuid value against the metadata, and adjusts the value if necessary.

public:
 System::Data::SqlTypes::SqlGuid Adjust(System::Data::SqlTypes::SqlGuid value);
public System.Data.SqlTypes.SqlGuid Adjust (System.Data.SqlTypes.SqlGuid value);
member this.Adjust : System.Data.SqlTypes.SqlGuid -> System.Data.SqlTypes.SqlGuid
Public Function Adjust (value As SqlGuid) As SqlGuid

参数

value
SqlGuid SqlGuid SqlGuid SqlGuid

要根据 SqlMetaData 实例进行验证的值。 The value to validate against the SqlMetaData instance.

Returns

作为 SqlGuid 的调整后的值。 The adjusted value as a SqlGuid.

Exceptions

ValueSqlMetaData 类型不匹配,或者未能调整 value Value does not match the SqlMetaData type, or value could not be adjusted.

Adjust(SqlInt32) Adjust(SqlInt32) Adjust(SqlInt32) Adjust(SqlInt32)

根据元数据验证指定的 SqlInt32 值,并在需要时调整该值。 Validates the specified SqlInt32 value against the metadata, and adjusts the value if necessary.

public:
 System::Data::SqlTypes::SqlInt32 Adjust(System::Data::SqlTypes::SqlInt32 value);
public System.Data.SqlTypes.SqlInt32 Adjust (System.Data.SqlTypes.SqlInt32 value);
member this.Adjust : System.Data.SqlTypes.SqlInt32 -> System.Data.SqlTypes.SqlInt32
Public Function Adjust (value As SqlInt32) As SqlInt32

参数

value
SqlInt32 SqlInt32 SqlInt32 SqlInt32

要根据 SqlMetaData 实例进行验证的值。 The value to validate against the SqlMetaData instance.

Returns

作为 SqlInt32 的调整后的值。 The adjusted value as a SqlInt32.

Exceptions

ValueSqlMetaData 类型不匹配,或者未能调整 value Value does not match the SqlMetaData type, or value could not be adjusted.

Adjust(SqlBytes) Adjust(SqlBytes) Adjust(SqlBytes) Adjust(SqlBytes)

根据元数据验证指定的 SqlBytes 值,并在需要时调整该值。 Validates the specified SqlBytes value against the metadata, and adjusts the value if necessary.

public:
 System::Data::SqlTypes::SqlBytes ^ Adjust(System::Data::SqlTypes::SqlBytes ^ value);
public System.Data.SqlTypes.SqlBytes Adjust (System.Data.SqlTypes.SqlBytes value);
member this.Adjust : System.Data.SqlTypes.SqlBytes -> System.Data.SqlTypes.SqlBytes
Public Function Adjust (value As SqlBytes) As SqlBytes

参数

value
SqlBytes SqlBytes SqlBytes SqlBytes

要根据 SqlMetaData 实例进行验证的值。 The value to validate against the SqlMetaData instance.

Returns

作为 SqlBytes 的调整后的值。 The adjusted value as a SqlBytes.

Exceptions

ValueSqlMetaData 类型不匹配,或者未能调整 value Value does not match the SqlMetaData type, or value could not be adjusted.

Applies to