SoapHexBinary Constructors

Definition

Initializes a new instance of the SoapHexBinary class.

Overloads

SoapHexBinary()

Initializes a new instance of the SoapHexBinary class.

SoapHexBinary(Byte[])

Initializes a new instance of the SoapHexBinary class.

SoapHexBinary()

Initializes a new instance of the SoapHexBinary class.

C#
public SoapHexBinary();

Examples

The following code example shows how to use this constructor.

C#
// Create a SoapHexBinary object.
SoapHexBinary hexBinary = new SoapHexBinary();
hexBinary.Value = new byte[]{ 2, 3, 5, 7, 11 };
Console.WriteLine("The SoapHexBinary object is {0}.",
    hexBinary.ToString());

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

SoapHexBinary(Byte[])

Initializes a new instance of the SoapHexBinary class.

C#
public SoapHexBinary(byte[] value);

Parameters

value
Byte[]

A Byte array that contains a hexadecimal number.

Examples

The following code example shows how to use this constructor.

C#
// Create a SoapHexBinary object.
byte[] bytes = new byte[]{ 2, 3, 5, 7, 11 };
SoapHexBinary hexBinary = new SoapHexBinary(bytes);
Console.WriteLine("The SoapHexBinary object is {0}.",
    hexBinary.ToString());

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1