Retrieve, or set the value of a Storage Management identity key.
Review the Storage Management: Introduction article's Identity Keys section to learn about how these keys affect the application. These keys should be set along with the System Parameters each time an Exago session is created via the API.
public System.string Identity(
System.string ,
System.string
)
Parameters
- key
The name of the Storage Management identity key to set. Either:
- userId
- companyId
- classId
- ownerId
Storage Management also allows for creating custom identity keys by modifying the XML configuration file and party type table. Any custom identity keys may also be set with this call.
- defaultValue
- If no value for key can be found, this method will return this value, which is null be default.
Return Value
A string representing the value of the requested key. If no value for key can be found, the defaultValue will be returned.
Display a Welcome Message
Label1.Text = "Welcome " + api.SetupData.StorageMgmtConfig.Identity("userId") + " from " + api.SetupData.StorageMgmtConfig.Identity("comapanyId");