expression.ConnectMacro As String
where expression is a variable that represents a IbmTerminal Object
Gets or sets the name of a macro that runs automatically after a connection is established.
Note: This property is deprecated. Please use the ConnectAction Property instead.
expression.ConnectMacro As String
Exception | Description |
---|---|
ArgumentException | This exception is thrown if the set parameter is longer than the maximum allowed. |
Attachmate.Reflection.SecuredSettingException | This exception is thrown when you modify a property that was secured via the Permissions Manager, or that can only be modified by an Administrator. |
Connect macros run after the terminal has successfully made a connection to the host. They should not include session setup information.
You can also use the Configure Advanced Connection Settings dialog box or Reflection's event commands to run a macro after a connection is made. Using events is a more powerful, flexible strategy.