SendMessageRaw Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Sends a message as a raw stream of bytes.
Namespace: Microsoft.SPOT.Messaging
Assembly: Microsoft.SPOT.Native (in Microsoft.SPOT.Native.dll)
Syntax
'Declaration
Public Function SendMessageRaw ( _
selector As Type, _
id As UInteger, _
timeout As Integer, _
payload As Byte() _
) As Byte()
public byte[] SendMessageRaw(
Type selector,
uint id,
int timeout,
byte[] payload
)
public:
array<unsigned char>^ SendMessageRaw(
Type^ selector,
unsigned int id,
int timeout,
array<unsigned char>^ payload
)
member SendMessageRaw :
selector:Type *
id:uint32 *
timeout:int *
payload:byte[] -> byte[]
public function SendMessageRaw(
selector : Type,
id : uint,
timeout : int,
payload : byte[]
) : byte[]
Parameters
- selector
Type: System. . :: . .Type
The data type contained in this message.
- id
Type: System. . :: . .UInt32
The message indentifier.
- timeout
Type: System. . :: . .Int32
The message timeout length.
- payload
Type: array<System. . :: . .Byte> [] () [] []
The contents of the message.
Return Value
Type: array<System. . :: . .Byte> [] () [] []
Returns null if the message was sent successfully, or the deserialized contents of the message if transmission was unsuccessful.
Remarks
This class supports the .NET Micro Framework infrastructure and is not intended to be used directly from your code.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.