TryPostUnknownType Method

Microsoft Robotics Class Reference

Attempts unsafe (untyped) post of an object.

Remarks

Use to avoid possible exception thrown if item 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 virtual bool TryPostUnknownType(
    Object item
)

Parameters

Return Value

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

Implements

IPort. . :: . .TryPostUnknownType(Object)

See Also

Port< (Of < ( <'T> ) > ) > Class

Microsoft.Ccr.Core Namespace