DotNetCall.EditCode

Syntax

DotNetCall.EditCode

Return Value

Boolean

Purpose

Attempts to launch Microsoft Visual Studio to edit the code associated with the .NET call.

Remarks

For DotNetModule objects, use this method instead of the Module.EditCode method.

Use the Module.CanCreateCode property to determine whether this step can edit code.

If you do not specify any files for the DotNetModule.ProjectFilePath or DotNetModule.SourceFilePath properties, call this method to prompt the user to specify the project and source files. The adapter stores the specified project file in the step, but the source file you select applies only to the current .NET call.

When you call this method, you might receive additional prompts to determine whether any of the following conditions exist:

  • Multiple versions of Visual Studio exist on the computer and you select the Always Prompt for Version option from the Version of Visual Studio to Use for Create and Edit Code ring control in the .NET Adapter Configuration dialog box.
  • Multiple versions of Visual Studio exist on the computer and you select the use the Version that Matches the Project File option from the Version of Visual Studio to Use for Create and Edit Code ring control in the .NET Adapter Configuration dialog box, and TestStand cannot match the version of the file.
  • The specified solution does not contain the specified project.
  • The specified project does not contain the specified source file.

See Also

.NET Adapter Configuration dialog box

DotNetCall.ClassName

DotNetCall.EditCode

DotNetCall.MemberName

DotNetModule

DotNetModule.ProjectFilePath

DotNetModule.SourceFilePath

Module.CanCreateCode

Module.EditCode