Interface IModelContext
Provides information about the model and a model scoped shared storage.
Namespace: Attachmate.Verastream.HostIntegrator.ScriptAPI
Assembly: Attachmate.Verastream.HostIntegrator.ScriptAPI.dll
Syntax
public interface IModelContext
Properties
ModelName
Gets the name of the model which is used for this host session.
Declaration
string ModelName { get; }
Property Value
Type | Description |
---|---|
string | Name of the model |
ServerName
Gets the name of the server, as defined to AADS, which is executing this model.
Declaration
string ServerName { get; }
Property Value
Type | Description |
---|---|
string | Name of server |
Methods
GetModelStateObject(string)
Gets the object bound to the specified name in this model context, or null if no object is bound to the name.
Declaration
object GetModelStateObject(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the object |
Returns
Type | Description |
---|---|
object | The object bound to the specified name or null if none |
IsModelStateObject(string)
Determines if the name has a binding.
Declaration
bool IsModelStateObject(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The bind name to evaluate |
Returns
Type | Description |
---|---|
bool | True if there is something stored under this name, false otherwise. Note that the return will be true even if the name is bound to a null reference. |
Remarks
Determines if the name has a binding. The binding may refer to an actual object or it may be null.
SetModelStateObject(string, object)
Binds an object to this model context, using the name specified.
Declaration
void SetModelStateObject(string name, object objectInstance)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name to which to bind the object |
object | objectInstance | The object to bind |
Remarks
Binds an object to this model context, using the name specified. If an object of the same name is already bound to the model context, the object is replaced.