Export (0) Print
Expand All

SqlMetaData.Adjust Method (Int64)

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

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

public long Adjust(
	long value
)

Parameters

value
Type: System.Int64

The value to validate against the SqlMetaData instance.

Return Value

Type: System.Int64
The adjusted value as a Int64.

ExceptionCondition
ArgumentException

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft