DOFObjectinvoke Method (DOFInterfaceMethod, IListDOFValue, DOFOperationControl, Int32)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,
	IList<DOFValue> parameters,
	DOFOperationControl control,
	int timeout
)

Parameters

method
Type: org.opendof.core.oalDOFInterfaceMethod
The method. Must not be null.
parameters
Type: System.Collections.GenericIListDOFValue
The method's parameter list. The data types must match the method's defined parameter types. Null is the same as an empty parameter list.
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.

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[])