TargetArgs property

TargetArgs property

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

See also         Example         Applies to

Gets or sets the arguments to be sent to the target of an event.

Version added

4.0

Syntax

        
          strRet = object.TargetArgs
      
        
          object.TargetArgs = stringExpression
      

strRet

String. The current arguments.

object

Required. An expression that returns an Event object.

stringExpression

Required String. The new arguments to set.

Remarks

An event consists of an event-action pair. When the event occurs, the action is performed. An event also specifies the target of the action and arguments to send to the target.

When you use visActCodeRunAddon, the TargetArgs property contains the arguments to send to the add-on when it is run.

When you use visActCodeAdvise, the TargetArgs property contains the string specified with the AddAdvise method when the Event object was created. When the program receives notification of the event, it can get the Event object and its TargetArgs property to obtain the string.