Receive(T) Method (Port(T), Handler(T))
Microsoft Robotics Class Reference
Creates a one time receiver
Namespace: Microsoft.Ccr.Core
Assembly: Microsoft.Ccr.Core (in Microsoft.Ccr.Core.dll) Version: 4.0.261.0 (4.0.261.0)
Syntax
public static Receiver Receive<T>(
this Port<T> port,
Handler<T> handler
)
Parameters
- port
Type: Microsoft.Ccr.Core. . :: . .Port< (Of < ( <'T> ) > ) >
- handler
Type: Microsoft.Ccr.Core. . :: . .Handler< (Of < ( <'T> ) > ) >
User delegate that executes when there is an item on the port
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:Microsoft.Ccr.Core.PortExtensions.Receive``1(Microsoft.Ccr.Core.Port{``0},Microsoft.Ccr.Core.Handler{``0})"]
Return Value
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Port< (Of < ( <'T> ) > ) >. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .