Edit

Share via


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.

public:
 SoapHexBinary();
public SoapHexBinary ();
Public Sub New ()

Examples

The following code example shows how to use this constructor.

// Create a SoapHexBinary object.
SoapHexBinary^ hexBinary = gcnew SoapHexBinary;
hexBinary->Value = gcnew array<Byte>(5){
   2,3,5,7,11
};
Console::WriteLine( L"The SoapHexBinary object is {0}.", hexBinary );
// 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

SoapHexBinary(Byte[])

Initializes a new instance of the SoapHexBinary class.

public:
 SoapHexBinary(cli::array <System::Byte> ^ value);
public SoapHexBinary (byte[] value);
new System.Runtime.Remoting.Metadata.W3cXsd2001.SoapHexBinary : byte[] -> System.Runtime.Remoting.Metadata.W3cXsd2001.SoapHexBinary
Public Sub New (value As Byte())

Parameters

value
Byte[]

A Byte array that contains a hexadecimal number.

Examples

The following code example shows how to use this constructor.

// Create a SoapHexBinary object.
array<Byte>^ bytes = gcnew array<Byte>(5){
   2,3,5,7,11
};
SoapHexBinary^ hexBinary = gcnew SoapHexBinary( bytes );
Console::WriteLine( L"The SoapHexBinary object is {0}.", hexBinary );
// 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