BinaryExchange Constructor (Byte[], Uri, Uri)

.NET Framework (current version)
 

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

Namespace:   System.IdentityModel.Protocols.WSTrust
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public BinaryExchange(
	byte[] binaryData,
	Uri valueType,
	Uri encodingType
)

Parameters

binaryData
Type: System.Byte[]

The binary data exchanged.

valueType
Type: System.Uri

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

encodingType
Type: System.Uri

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

Exception Condition
ArgumentNullException

binaryData is null.

-or-

encodingType is null.

-or-

valueType is null.

ArgumentException

encodingType is not an absolute URI.

-or-

valueType is not an absolute URI.

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.

.NET Framework
Available since 4.5
Return to top
Show: