Sets a byte array value with the specified name into the Map.
Namespace:
Kaazing.JMSAssembly: Kaazing.JMS (in Kaazing.JMS.dll)
Syntax
| Visual Basic |
|---|
Sub SetBytes ( _ name As String, _ value As Byte() _ ) |
| C# |
|---|
void SetBytes( string name, byte[] value ) |
| Visual C++ |
|---|
void SetBytes( String^ name, array<unsigned char>^ value ) |
Parameters
- name
- Type: System..::..String
the name of the byte array
- value
- Type: array<System..::..Byte>[]()[][]
the byte array value to set in the Map; the array is copied so that the value for name will not be altered by future modifications
Exceptions
| Exception | Condition |
|---|---|
| Kaazing.JMS..::..JMSException | if the JMS provider fails to write the message due to some internal error. |
| System..::..ArgumentException | if the name is null, or if the name is an empty string. |
| Kaazing.JMS..::..MessageNotWriteableException | if the message is in read-only mode. |