This documentation is archived and is not being maintained.

Binary Widening Conversion (Byte() to Binary)

Enables arrays of bytes to be implicitly coerced to the Binary type in a programming language.

Namespace:  System.Data.Linq
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

'Declaration
Public Shared Widening Operator CType ( _
	value As Byte() _
) As Binary

Parameters

value
Type: System.Byte()
The array of bytes to convert into an instance of the Binary type.

Return Value

Type: System.Data.Linq.Binary
A Binary class containing the coerced value.

When Nothing is passed to this operator instead of the required array of bytes, a System.ArgumentNullException exception is thrown. Do not rely on this behavior because it may change in the future.

.NET Framework

Supported in: 4, 3.5

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: