VintaSoft Imaging .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Imaging.Pdf.JavaScriptApi Namespace / PdfJsEvent Class / targetName Property
Syntax Remarks Requirements SeeAlso
In This Topic
targetName Property (PdfJsEvent)
In This Topic
Gets the name of the target.
Syntax
'Declaration

Public ReadOnly Property targetName As System.String

public System.String targetName { get; }

Remarks

Tries to return the name of the JavaScript being executed. Can be used for debugging purposes to help identify the code causing exceptions to be thrown. Common values of targetName include:

  • The folder-level script file name for App/Init events
  • The document-level script name forDoc/Open events
  • The PDF file name being processed for Batch/Exec events
  • The field name for Field events
  • The menu item name for Menu/Exec events
  • The screen annotation name for Screen events (multimedia events)
When an exception is thrown, targetName is reported if there is an identifiable name.

Requirements

Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also