Invoke Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Executes a specified delegate with a specified argument.
Namespace: Microsoft.SPOT
Assembly: Microsoft.SPOT.TinyCore (in Microsoft.SPOT.TinyCore.dll)
Syntax
'Declaration
Public Function Invoke ( _
timeout As TimeSpan, _
method As DispatcherOperationCallback, _
args As Object _
) As Object
public Object Invoke(
TimeSpan timeout,
DispatcherOperationCallback method,
Object args
)
public:
Object^ Invoke(
TimeSpan timeout,
DispatcherOperationCallback^ method,
Object^ args
)
member Invoke :
timeout:TimeSpan *
method:DispatcherOperationCallback *
args:Object -> Object
public function Invoke(
timeout : TimeSpan,
method : DispatcherOperationCallback,
args : Object
) : Object
Parameters
- timeout
Type: System. . :: . .TimeSpan
The maximum amount of time the program will wait for the operation to finish.
- method
Type: Microsoft.SPOT. . :: . .DispatcherOperationCallback
A delegate to a method that takes multiple arguments, which is pushed onto the dispatcher's event queue.
- args
Type: System. . :: . .Object
An object to be passed as an argument to the specified method. This can be a nullNothingnullptrunita null reference (Nothing in Visual Basic) if no arguments are needed.
Return Value
Type: System. . :: . .Object
The return value from the invoked delegate, or a nullNothingnullptrunita null reference (Nothing in Visual Basic) if the delegate has no return value.
.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.