BinaryExchange Constructor (Byte[], Uri)

.NET Framework (current version)
 

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

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

public BinaryExchange(
	byte[] binaryData,
	Uri valueType
)

Parameters

binaryData
Type: System.Byte[]

The binary data exchanged.

valueType
Type: System.Uri

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

Exception Condition
ArgumentNullException

binaryData is null.

-or-

valueType is null.

ArgumentException

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

A Uri based on the F:System.IdentityModel.WSSecurity10Constants.EncodingTypes.Base64 constant.

ValueType

The specified value type Uri.

.NET Framework
Available since 4.5
Return to top
Show: