Consumes license for feature

Namespace:  Aras.IOM
Assembly:  IOM (in IOM.dll) Version: 11.0.0.6296

Syntax

C#
public string ConsumeLicense(
	string featureName
)
Visual Basic (Declaration)
Public Function ConsumeLicense ( _
	featureName As String _
) As String
J#
public String ConsumeLicense(
	String featureName
)
JScript
public function ConsumeLicense(
	featureName : String
) : String

Parameters

featureName
Type: System..::.String
the name on the feature

Return Value

Returns id of consumed license

Examples

CopyC#
...
HttpServerConnection connection = IomFactory.CreateHttpServerConnection(innovatorServerUrl, database, userName, password);
connection.Login();
Innovator inn = IomFactory.CreateInnovator(connection);
try
{
  string featureId = inn.ConsumeLicense("featureName");
}
finally
{
  connection.Logout();
}
...
CopyC++
 ...
 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