Click or drag to resize

InnovatorConsumeLicense Method

Consumes license for feature

Namespace:  Aras.IOM
Assembly:  IOM (in IOM.dll) Version: 14.0.20.39432
Syntax
public string ConsumeLicense(
	string featureName
)

Parameters

featureName
Type: SystemString
the name on the feature

Return Value

Type: String
Returns id of consumed license
Examples
C#
...
HttpServerConnection connection = IomFactory.CreateHttpServerConnection(innovatorServerUrl, database, userName, password);
connection.Login();
Innovator inn = IomFactory.CreateInnovator(connection);
try
{
  string featureId = inn.ConsumeLicense("featureName");
}
finally
{
  connection.Logout();
}
...
C++
 ...
 IOM::IHttpServerConnectionComIncomingPtr connection = iomFactory->CreateHttpServerConnection(innovatorServerUrl, database, userName, password);
 connection->Login();
 IOM::IInnovatorComIncomingPtr innovator = iomFactory->CreateInnovator(connection);
 _bstr_t a = innovatorAdmin->ConsumeLicense("featureName");
 connection->Logout();
...
See Also