BinaryExchange Constructors

Definition

Creates a new instance of the BinaryExchange class.

Overloads

BinaryExchange(Byte[], Uri)

Creates a new instance of the BinaryExchange class with the specified data and ValueType URI.

BinaryExchange(Byte[], Uri, Uri)

Creates a new instance of the BinaryExchange with the specified data, ValueType URI, and EncodingType URI.

BinaryExchange(Byte[], Uri)

Creates a new instance of the BinaryExchange class with the specified data and ValueType URI.

public:
 BinaryExchange(cli::array <System::Byte> ^ binaryData, Uri ^ valueType);
public BinaryExchange (byte[] binaryData, Uri valueType);
new System.IdentityModel.Protocols.WSTrust.BinaryExchange : byte[] * Uri -> System.IdentityModel.Protocols.WSTrust.BinaryExchange
Public Sub New (binaryData As Byte(), valueType As Uri)

Parameters

binaryData
Byte[]

The binary data exchanged.

valueType
Uri

A Uri that represents the value type of the binary data.

Exceptions

binaryData is null.

-or-

valueType is null.

valueType is not an absolute URI.

Remarks

The following table shows the initial property values for the new instance.

Property Value
BinaryData The specified binary data.
EncodingType A Uri based on the System.IdentityModel.WSSecurity10Constants.EncodingTypes.Base64 constant.
ValueType The specified value type Uri.

Applies to

BinaryExchange(Byte[], Uri, Uri)

Creates a new instance of the BinaryExchange with the specified data, ValueType URI, and EncodingType URI.

public:
 BinaryExchange(cli::array <System::Byte> ^ binaryData, Uri ^ valueType, Uri ^ encodingType);
public BinaryExchange (byte[] binaryData, Uri valueType, Uri encodingType);
new System.IdentityModel.Protocols.WSTrust.BinaryExchange : byte[] * Uri * Uri -> System.IdentityModel.Protocols.WSTrust.BinaryExchange
Public Sub New (binaryData As Byte(), valueType As Uri, encodingType As Uri)

Parameters

binaryData
Byte[]

The binary data exchanged.

valueType
Uri

A Uri that represents the value type of the binary data.

encodingType
Uri

A Uri that specifies the encoding type to be used for encoding the binary data.

Exceptions

binaryData is null.

-or-

encodingType is null.

-or-

valueType is null.

encodingType is not an absolute URI.

-or-

valueType is not an absolute URI.

Remarks

The following table shows the initial property values for the new instance.

Property Value
BinaryData The specified binary data.
EncodingType The specified encoding type Uri.
ValueType The specified value type Uri.

Applies to