Parameters
- bsValName
- User-defined variable name
- oValue
- Value of user-defined variable (see Remarks)
This method can be called to set the value when the task is launched on the client computer (EdmCmdType.EdmCmd_TaskLaunch) and IEdmTaskInstance::GetValEx can be called to get the value when the task is executed on the server (EdmCmdType.EdmCmd_TaskRun).
Custom data types and objects must be serialized to a string, numeric type, or date before calling IEdmTaskInstance::SetValEx. For example:
- Serialize the object data to XML or JSON using StringBuilder, XmlWriter, XmlSerializer, etc.
- Call IEdmTaskInstance::SetValEx to store the resulting string.
- Call IEdmTaskInstance::GetValEx to retrieve the stored string.
- Initialize the new instance of the object from XML/JSON using StringReader, XmlReader, XmlSerializer, etc.
NOTE: The difference between this method and IEdmTaskInstance::SetVar is that the latter requires a pre-defined card variable in the vault, whereas this method does not.
- S_OK: The method successfully executed.
SOLIDWORKS PDM Professional 2010