Exago .NET API Documentation
SetIdentity Method
Example 
WebReports.Api.ReportMgmt Namespace > StorageMgmtConfig Class : SetIdentity Method

The name of the Storage Management identity key to set. Either:

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.

The value of the key to set. (e.g. the user or company name)

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.

Syntax
public void SetIdentity( 
   System.string key,
   System.string value
)

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.

value
The value of the key to set. (e.g. the user or company name)
Example
Quickly set the User Id and Company Id identity keys from textbox input
//input sanitation omitted for brevity
api.SetupData.StorageMgmtConfig.SetIdentity("userId", textBox1.Text);
api.SetupData.StorageMgmtConfig.SetIdentity("CompanyId", textBox2.Text);
See Also

Reference

StorageMgmtConfig Class
StorageMgmtConfig Members