Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SqlMetaData.Adjust Method (DateTimeOffset)

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

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

public DateTimeOffset Adjust(
	DateTimeOffset value
)

Parameters

value
Type: System.DateTimeOffset

The value to validate against the SqlMetaData instance.

Return Value

Type: System.DateTimeOffset
The adjusted value as an array of DateTimeOffset values.

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 SP1, 3.0 SP1, 2.0 SP1

.NET Framework Client Profile

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