TryPostUnknownType Method

Microsoft Robotics Class Reference

Attempts unsafe (untyped) post of a message instance.

Remarks

Use to avoid possible exception thrown if message type is incompatible with the port

Namespace: Microsoft.Ccr.Core
Assembly: Microsoft.Ccr.Core (in Microsoft.Ccr.Core.dll) Version: 4.0.261.0 (4.0.261.0)

Syntax

public bool TryPostUnknownType(
    Object item
)

Parameters

Return Value

If the item type is compatible with one of the contained port types, it enqueues the item and returns true. Otherwise it returns false with no exception thrown

Implements

IPort. . :: . .TryPostUnknownType(Object)

See Also

PortSet< (Of < ( <'T0, T1> ) > ) > Class

Microsoft.Ccr.Core Namespace