This documentation is archived and is not being maintained.

Binary.Implicit Operator

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
'Usage
Dim input As Byte()
Dim output As Binary 

output = CType(input, 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.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5
Show: