.NET ScriptAPI Method Reference

.NET ScriptAPI Method Reference

Show / Hide Table of Contents
  • Attachmate.Verastream.HostIntegrator.ScriptAPI
    • AppConnAidKey
    • ApptrieveException
    • AttributeEventHandler
    • ColumnType
    • ColumnValue
    • ContextType
    • CursorPosition
    • DescriptionAttribute
    • EchoType
    • EntityEventHandler
    • ErrorMessage
    • EventHandlerConstant
    • EventHandlerType
    • EventInfo
    • EventTimeoutException
    • FieldEventHandler
    • HostColor
    • HostFont
    • IApplyFilterEvent
    • IAttributeEvent
    • IAttributeMetaData
    • IAuthenticateUserEvent
    • IClientConnectedEvent
    • IClientDisconnectedEvent
    • IClientSession
    • IClientSessionCreatedEvent
    • IClientSessionDestroyedEvent
    • IColumnMetaData
    • IEntityArrivalEvent
    • IEntityDepartureEvent
    • IEntityEvent
    • IEntityMoveCursorEvent
    • IErrorReportedEvent
    • IEvent
    • IEventHandler
    • IExecuteLoginEvent
    • IExecuteLogoutEvent
    • IExecuteOperationEvent
    • IExecuteProcedureEvent
    • IFieldEvent
    • IFieldLocation
    • IFieldMetaData
    • IFormatErrorEvent
    • IGetCurrentHostRecordEvent
    • IGetRecordTypeEvent
    • IHostSession
    • IHostSessionCreatedEvent
    • IHostSessionDestroyedEvent
    • IHostSessionEvent
    • IInsertRecordEvent
    • IIsTerminatedEvent
    • ILifeCycleEvent
    • ILinearTerminalRegion
    • ILogger
    • IMetaData
    • IModelContext
    • IModelCursorEvent
    • IModelEvent
    • IModelLoadedEvent
    • IModelMoveCursorBackwardEvent
    • IModelMoveCursorEvent
    • IModelMoveCursorForwardEvent
    • IModelRecord
    • IModelRecordSet
    • IModelUnloadedEvent
    • IMutableProcedureRecord
    • IMutableProcedureRecordSet
    • IOperationMetaData
    • IParseRecordEvent
    • IParseScreenEvent
    • IProcedureMetaData
    • IProcedureParameters
    • IProcedureRecord
    • IProcedureRecordSet
    • IProcessStringEvent
    • IReadAttributeEvent
    • IReadFieldEvent
    • IRecord
    • IRecordEvent
    • IRecordLocation
    • IRecordSet
    • IRecordSetContext
    • IRecordSetEvent
    • IRecordSetMetaData
    • IRecordSetScreen
    • IRectangularTerminalRegion
    • IScriptHostSession
    • ITerminalAttributes
    • ITerminalCell
    • ITerminalRegion
    • IUnrecognizedScreenEvent
    • IUpdateRecordEvent
    • IVariableMetaData
    • IWriteAttributeEvent
    • IWriteAttributesEvent
    • IWriteFieldEvent
    • IndexValue
    • LifeCycleEventHandler
    • MetaDataType
    • ModelEventHandler
    • OperationEventHandler
    • ProcedureEventHandler
    • ProcedureType
    • RecordSetEventHandler
    • RecordType
    • RegionType
    • RowValue
    • ScreenSize
    • ScrollDirection
    • ScrollMovement
    • TimeoutAttribute
    • VariableInitialization
    • VariableKind
  • Attachmate.Verastream.HostIntegrator.ScriptAPI.Command
    • CheckOperationConditions
    • Command
    • DefaultValue
    • MoveCursor
    • Navigate
    • ReadFromMappedAttribute
    • ReadVariableFromAttribute
    • ReadVariableFromField
    • ReadVariableFromLocation
    • ReadVariableFromTerminal
    • ResetRecordSet
    • Transmit
    • TransmitTerminalKey
    • TransmitToAttribute
    • TransmitToField
    • TransmitToLocation
    • TransmitToOffset
    • UpdateAttribute
    • UpdateAttributes
    • UpdateRecordSetField
    • UpdateRecordSetFields
    • WaitForCommString
    • WaitForCondition
    • WaitForCursorAtAttribute
    • WaitForCursorAtLocation
    • WaitForCursorAtRecordSetField
    • WaitForCursorAtTerminalField
    • WaitForCursorNotAtLocation
    • WaitForCursorNotAtTerminalField
    • WaitForDisplayString
    • WaitForHostSilence
    • WaitForKeyboardEnabled
    • WaitForMultipleEvents
    • WaitForNewHostScreen
    • WaitForUpdate
    • WaitMS
    • WriteToMappedAttribute
    • WriteVariableToAttribute
    • WriteVariableToField
    • WriteVariableToLocation
    • WriteVariableToTerminal
  • WRQ.Verastream.HostIntegrator
    • RcConst

Interface IScriptHostSession

Provides information about the scripted host session and allows for the manipulation of the terminal at various levels (direct, model, table).

Inherited Members
IHostSession.CursorPosition
IHostSession.TerminalScreenSize
IHostSession.TerminalScreen
IHostSession.HomeEntity
IHostSession.ModelEntities
IHostSession.GetCurrentEntity()
IHostSession.SetCurrentEntity(string)
IHostSession.AttributeAtCursor
IHostSession.GetCurrentRecordSet()
IHostSession.SetCurrentRecordSet(string)
IHostSession.CurrentRecord
IHostSession.ModelVariableNames
IHostSession.GetModelVariables()
IHostSession.SetModelVariables(IDictionary<string, string>)
IHostSession.TableNames
IHostSession.CheckOperationConditions()
IHostSession.DefaultValue(string, string, ContextType)
IHostSession.MoveCursor(int, int)
IHostSession.Navigate(string)
IHostSession.ReadFromMappedAttribute(string)
IHostSession.ReadVariableFromAttribute(string, string)
IHostSession.ReadVariableFromField(string, string, string)
IHostSession.ReadVariableFromLocation(string, int, int, int)
IHostSession.ReadVariableFromTerminal(string, int)
IHostSession.ResetRecordSet(string)
IHostSession.ShiftCursor(int, int)
IHostSession.Transmit(string)
IHostSession.Transmit(string, EchoType)
IHostSession.TransmitTerminalKey(AppConnAidKey)
IHostSession.TransmitToAttribute(string, string)
IHostSession.TransmitToField(string, string, string)
IHostSession.TransmitToLocation(string, int, int)
IHostSession.TransmitToLocation(string, int, int, EchoType)
IHostSession.TransmitToOffset(string, int)
IHostSession.TransmitToOffset(string, int, EchoType)
IHostSession.UpdateAttribute(string)
IHostSession.UpdateAttributes(ICollection<string>)
IHostSession.UpdateAttributes()
IHostSession.UpdateRecordSetField(string, string)
IHostSession.UpdateRecordSetFields(string, ICollection<string>)
IHostSession.UpdateRecordSetFields(string)
IHostSession.Wait(int)
IHostSession.WaitMS(int)
IHostSession.WaitForCommString(string, int)
IHostSession.WaitForCommString(string, int, int)
IHostSession.WaitForDisplayString(string, int, int, bool, int)
IHostSession.WaitForCursorAtLocation(int, int, int)
IHostSession.WaitForCursorNotAtLocation(int, int, int)
IHostSession.WaitForCursorAtTerminalField(int, int, int)
IHostSession.WaitForCursorNotAtTerminalField(int, int, int)
IHostSession.WaitForKeyboardEnabled(int, int)
IHostSession.WaitForNewHostScreen(int)
IHostSession.WaitForHostSilence(int, int)
IHostSession.WaitForMultipleEvents(string, int)
IHostSession.WaitForUpdate(int, int, int, int, RegionType, bool, int)
IHostSession.WaitForCondition(string, string, int)
IHostSession.WaitForCursorAtAttribute(string, string, int)
IHostSession.WaitForCursorAtRecordSetField(string, string, string, int)
IHostSession.WriteToMappedAttribute(string)
IHostSession.WriteVariableToAttribute(string, string)
IHostSession.WriteVariableToField(string, string, string)
IHostSession.WriteVariableToTerminal(string, int, bool, EchoType)
IHostSession.WriteVariableToLocation(string, int, int, int, bool, EchoType)
IHostSession.ExecuteCommandList(IList<Command>)
IHostSession.GetStringAtCursor(int)
IHostSession.GetStringAtOffset(int, int)
IHostSession.GetStringAtLocation(int, int, int, int)
IHostSession.GetLinearTerminalRegion(int, int)
IHostSession.GetRectangularTerminalRegion(int, int, int, int)
IHostSession.WaitForHostData(int)
IHostSession.WaitForEntity(string, int)
IHostSession.WaitForEntities(IList<string>, int)
IHostSession.GetEntityDescription(string)
IHostSession.GetPatternRegion(string)
IHostSession.GetPatternRegions(IList<string>)
IHostSession.GetEntityAttributes(string)
IHostSession.GetAttributeMetaData(string, string)
IHostSession.GetAttributeRegion(string)
IHostSession.GetAttributeRegions(IList<string>)
IHostSession.GetAttribute(string)
IHostSession.GetAttributes()
IHostSession.GetAttributes(IList<string>)
IHostSession.SetAttribute(string, string)
IHostSession.SetAttributes(IDictionary<string, string>)
IHostSession.SetAttributeDelayed(string, string, string)
IHostSession.SetAttributesDelayed(string, IDictionary<string, string>)
IHostSession.GetEntityOperations(string)
IHostSession.GetOperationMetaData(string, string)
IHostSession.ExecuteOperation(string)
IHostSession.GetEntityRecordSets(string)
IHostSession.GetRecordSetMetaData(string, string)
IHostSession.GetFieldMetaData(string, string, string)
IHostSession.FetchRecords(int, IList<string>, string)
IHostSession.GetCurrentRecordIndex()
IHostSession.SetCurrentRecordIndex(int)
IHostSession.NextRecord(string)
IHostSession.MoveCurrentRecordIndex(ScrollMovement)
IHostSession.SelectCurrentRecord()
IHostSession.SelectRecordByFilter(string)
IHostSession.SelectRecordByIndex(int)
IHostSession.InsertRecord(IDictionary<string, string>)
IHostSession.InsertRecords(IList<IDictionary<string, string>>)
IHostSession.UpdateCurrentRecord(IDictionary<string, string>)
IHostSession.UpdateRecordByFilter(IDictionary<string, string>, string)
IHostSession.UpdateRecordByIndex(IDictionary<string, string>, int)
IHostSession.UpdateRecords(IDictionary<string, string>, string)
IHostSession.GetRecordSetRegion(string)
IHostSession.GetRecordRegion(string)
IHostSession.GetFieldRegion(string)
IHostSession.GetFieldRegions(IList<string>)
IHostSession.GetVariableMetaData(string)
IHostSession.GetModelVariable(string)
IHostSession.SetModelVariable(string, string)
IHostSession.GetTableDescription(string)
IHostSession.GetTableProcedures(string)
IHostSession.GetProcedureMetaData(string, string)
IHostSession.GetTableColumns(string)
IHostSession.GetColumnMetaData(string, string)
IHostSession.ExecuteTableProcedure(string, string, IDictionary<string, string>, IDictionary<string, string>, bool, IList<string>, int)
IHostSession.ExecuteSQLStatement(string)
Namespace: Attachmate.Verastream.HostIntegrator.ScriptAPI
Assembly: Attachmate.Verastream.HostIntegrator.ScriptAPI.dll
Syntax
public interface IScriptHostSession : IHostSession

Properties

HostSessionID

Gets the VHI host session ID.

Declaration
int HostSessionID { get; }
Property Value
Type Description
int

host session ID

Methods

ConnectToHost()

Connects to the host.

Declaration
void ConnectToHost()
Remarks

Connects to the host. Upon returning from this method a connection will have been established with the host, but the login command list will not have been executed.

Exceptions
Type Condition
ApptrieveException

DisconnectFromHost()

Disconnects from the host.

Declaration
void DisconnectFromHost()
Remarks

Disconnects from the host. Calling this method immediately drops the connection without navigating home and without executing the logout command list.

Exceptions
Type Condition
ApptrieveException

ExecuteLogin()

Executes the login command list.

ApptrieveException

Declaration
void ExecuteLogin()

ExecuteLogout()

Executes the logout command list.

ApptrieveException

Declaration
void ExecuteLogout()

GetHostStateObject(string)

Gets the object bound to the specified name in this host session, or null if no object is bound to the name.

Declaration
object GetHostStateObject(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

IsHostStateObject(string)

Tests for the presence of a host state object bound to the specified name.

Declaration
bool IsHostStateObject(string name)
Parameters
Type Name Description
string name

the name of the object

Returns
Type Description
bool

true if an object is bound to the specified name

SetHostStateObject(string, object)

Binds an object to this host session, using the name specified.

Declaration
void SetHostStateObject(string name, object obj)
Parameters
Type Name Description
string name

the name to which to bind the object

object obj

the object to bind

Remarks

Binds an object to this host session, using the name specified. If an object of the same name is already bound to the session, the object is replaced.

In This Article
Back to top © 1985-2024 Rocket Software, Inc. or its affiliates. All Rights Reserved