Programming Guide |
Gets the value of a property
char *sm_mts_GetPropertyValue(char *group, char *prop);
group
- Name of the property group.
prop
- Name of the property.
MTS
Server
- · The value of the property as a string
sm_mts_GetPropertyValue
gets the value of the named property within the specified group. If the property or the group does not exist, it will be created.The value of the property is always converted to a string.
For more details see the get_Value method under ISharedProperty in the MTS documentation.
Note that this function requires an object context and therefore cannot be used in the constructor of a service component.
This function stores the data in a buffer that is shared with other functions, so you must either process the returned string immediately or copy it to another variable for additional processing.
sm_mts_PutPropertyValue, sm_mts_CreateProperty