DOFObjectinvoke Method (DOFInterfaceMethod, DOFOperationControl, Int32, DOFValue)OpenDOF Object Access Library
Used by a Requestor to invoke (or call) a method as specified using a Control .

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,
	DOFOperationControl control,
	int timeout,
	params DOFValue[] parameters
)

Parameters

method
Type: org.opendof.core.oalDOFInterfaceMethod
The method. Must not be null.
control
Type: org.opendof.core.oalDOFOperationControl
The control to use for the request.
timeout
Type: SystemInt32
Maximum time to wait, in milliseconds, to obtain the result of the operation. Timeout in milliseconds. 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: DOFResultIListDOFValue
The method return value. For broadcast requests, only the first result received is returned -- use beginInvoke to get multiple results.
Exceptions

ExceptionCondition
DOFExceptionIndicates an error occurred.
DOFException
See Also

Reference

beginInvoke(Method, int, DOFValue[])