Share via


Macros.EmitMacroCode(String) Method

Definition

Writes the line of code to the macro being recorded. This method should not be used from within a macro.

public:
 void EmitMacroCode(System::String ^ Code);
public:
 void EmitMacroCode(Platform::String ^ Code);
void EmitMacroCode(std::wstring const & Code);
[System.Runtime.InteropServices.DispId(4)]
public void EmitMacroCode (string Code);
[<System.Runtime.InteropServices.DispId(4)>]
abstract member EmitMacroCode : string -> unit
Public Sub EmitMacroCode (Code As String)

Parameters

Code
String

Required. The line of code to add to the macro.

Attributes

Remarks

Macros are deprecated. For information about how to use automation in Visual Studio, see FAQ: Converting Add-ins to VSPackage Extensions.

Applies to