Used by a Requestor to invoke (or call) a method.
Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax
C#
public DOFResult<IList<DOFValue>> invoke( DOFInterfaceMethod method, int timeout, params DOFValue[] parameters )
Parameters
- method
- Type: org.opendof.core.oalDOFInterfaceMethod
The method. Must not be null. - timeout
- Type: SystemInt32
Maximum time to wait, in milliseconds, to obtain the result of the operation. Must be >= 0. - parameters
- Type: org.opendof.core.oalDOFValue
The method's parameters. The data types and order must match the method's defined parameter types. May be omitted for an empty parameter list.
Return Value
Type: DOFResultIListDOFValueThe method return value. For broadcast requests, only the first result received is returned -- use beginInvoke to get multiple results.
Exceptions
Exception | Condition |
---|---|
DOFException | Indicates an error occurred. |
DOFException |
Remarks
See Also
Reference
beginInvoke(Method, int, DOFValue[])