| Visual Basic | |
|---|---|
Function GetValEx( _ ByVal bsValName As System.String _ ) As System.Object | |
| C# | |
|---|---|
System.object GetValEx( System.string bsValName ) | |
| C++/CLI | |
|---|---|
System.Object^ GetValEx( & System.String^ bsValName ) | |
Parameters
- bsValName
- Name of a user-defined variable
Return Value
Value of user-defined variable (see Remarks)Create a Task that Finds Files in Workflow States (VB.NET)
Create a Task that Finds Files in Workflow States (C#)
Create a Task that Finds Files in Workflow States (C#)
This method gets the value of a user-defined variable that is created by IEdmTaskInstance::SetValEx or IEdmTaskProperties::SetValEx. User-defined variables are usually created during the processing of the EdmCmdType.EdmCmd_TaskLaunch or the EdmCmdType.EdmCmd_TaskSetup hook and are usually read during the processing of the EdmCmdType.EdmCmd_TaskRun hook.
Custom data types and objects must have been serialized to a string, numeric type, or date before calling IEdmTaskInstance::SetValEx or IEdmTaskProperites::SetValEx. For example:
- Serialize the object data to XML or JSON using StringBuilder, XmlWriter, XmlSerializer, etc.
- Call IEdmTaskInstance::SetValEx or IEdmTaskProperties::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: User-defined variables are not related to the card variables created using the administration tool. To access card variables, call IEdmTaskInstance::GetVar and IEdmTaskInstance::SetVar.
- S_OK: The method successfully executed.
SOLIDWORKS PDM Professional 2010