Share via


IVsCmdNameMapping.EnumMacroNames(VSCMDNAMEOPTS, IEnumString) Method

Definition

Returns an enumerator for the names of macros in the project.

public:
 int EnumMacroNames(Microsoft::VisualStudio::Shell::Interop::VSCMDNAMEOPTS grfOptions, [Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::IEnumString ^ % ppEnumString);
public:
 int EnumMacroNames(Microsoft::VisualStudio::Shell::Interop::VSCMDNAMEOPTS grfOptions, [Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::IEnumString ^ &  ppEnumString);
int EnumMacroNames(Microsoft::VisualStudio::Shell::Interop::VSCMDNAMEOPTS grfOptions, [Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::IEnumString const & & ppEnumString);
public int EnumMacroNames (Microsoft.VisualStudio.Shell.Interop.VSCMDNAMEOPTS grfOptions, out Microsoft.VisualStudio.OLE.Interop.IEnumString ppEnumString);
abstract member EnumMacroNames : Microsoft.VisualStudio.Shell.Interop.VSCMDNAMEOPTS * IEnumString -> int
Public Function EnumMacroNames (grfOptions As VSCMDNAMEOPTS, ByRef ppEnumString As IEnumString) As Integer

Parameters

grfOptions
VSCMDNAMEOPTS

[in] Bit flags specifying what form of the macro name to retrieve. Values taken from the VSCMDNAMEOPTS enumeration.

ppEnumString
IEnumString

[out] An IEnumString interface to iterate through the strings returned.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsCmdNameMapping::EnumMacroNames(  
   [in] VSCMDNAMEOPTS grfOptions,   
   [out, retval] IEnumString **ppEnumString  
);  

Applies to