Converting VBScript's Err Object HelpContext Property

Definition: Sets or returns a context ID for a topic in a Help File.

Err Object HelpContext Property

If an error is associated with a topic in a help file you can retrieve that information using the HelpLink property. This command assigns the HelpLink property for the most recent error in the error collection to the variable $a:

$a = $error[0].helplink

Return to the VBScript to Windows PowerShell home page