Used by a Requestor to set a property's value 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<DOFValue_Void> set( DOFInterfaceProperty property, DOFValue value, DOFOperationControl control, int timeout )
Parameters
- property
- Type: org.opendof.core.oalDOFInterfaceProperty
The property. Must not be null. - value
- Type: org.opendof.core.oalDOFValue
The value of the property to be set. The data type must match the property's data type. - 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. Must be >= 0.
Return Value
Type: DOFResultDOFValue_VoidA DOFResult containing results of the operation (not typically of much interest in this case, but it does contain information about the provider that fulfilled the request). For broadcast requests, only the first result received is returned -- use beginSet to get multiple results.
Exceptions
Exception | Condition |
---|---|
DOFException | Indicates an error occurred. |
DOFException |
See Also
Reference
beginSet(Property, DOFValue, int)