SendMessage Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Sends a message.
Namespace: Microsoft.SPOT.Messaging
Assembly: Microsoft.SPOT.Native (in Microsoft.SPOT.Native.dll)
Syntax
'Declaration
Public Function SendMessage ( _
selector As Type, _
id As UInteger, _
timeout As Integer, _
payload As Object _
) As Object
public Object SendMessage(
Type selector,
uint id,
int timeout,
Object payload
)
public:
Object^ SendMessage(
Type^ selector,
unsigned int id,
int timeout,
Object^ payload
)
member SendMessage :
selector:Type *
id:uint32 *
timeout:int *
payload:Object -> Object
public function SendMessage(
selector : Type,
id : uint,
timeout : int,
payload : Object
) : Object
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: System. . :: . .Object
The contents of the message.
Return Value
Type: System. . :: . .Object
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.