SqlMetaData::Adjust Method (SqlInt16)

 

Validates the specified SqlInt16 value against the metadata, and adjusts the value if necessary.

Namespace:   Microsoft.SqlServer.Server
Assembly:  System.Data (in System.Data.dll)

public:
SqlInt16 Adjust(
	SqlInt16 value
)

Parameters

value
Type: System.Data.SqlTypes::SqlInt16

The value to validate against the SqlMetaData instance.

Return Value

Type: System.Data.SqlTypes::SqlInt16

The adjusted value as a SqlInt16.

Exception Condition
ArgumentException

Value does not match the SqlMetaData type, or value could not be adjusted.

.NET Framework
Available since 2.0
Return to top
Show: