PosCommon.Invoke Method (POS for .NET v1.14 SDK Documentation)

3/2/2014

Used by the Service Objects to raise an event.

Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)

Syntax

'Declaration
Protected Function Invoke ( _
    method As Delegate, _
    args As Object() _
) As Object
protected Object Invoke (
    Delegate method,
    Object[] args
)
protected:
Object^ Invoke (
    Delegate^ method, 
    array<Object^>^ args
)
protected Object Invoke (
    Delegate method, 
    Object[] args
)
protected function Invoke (
    method : Delegate, 
    args : Object[]
) : Object

Parameters

  • method
    Name of the event delegate.
  • args
    Object array of the arguments taken by the delegate.

Remarks

Invoke uses the value of the SynchronizingObject property to marshal the event to the correct thread.

If SynchronizingObject is set to null, the event is raised on the calling thread.

Note

Invoke is only used by Service Objects that do not derive from either the device’s basic or base class.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.

See Also

Reference

PosCommon Class
PosCommon Members
Microsoft.PointOfService Namespace