SqlMetaData.Adjust Method (Byte[])

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Validates the specified array of Byte values against the metadata, and adjusts the value if necessary.

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

public byte[] Adjust(
	byte[] value
)

Parameters

value
Type: System.Byte[]

The value to validate against the SqlMetaData instance.

Return Value

Type: System.Byte[]

The adjusted value as an array of Byte values.

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: