Partager via


IVsCmdNameMapping.EnumNames(VSCMDNAMEOPTS, IEnumString) Method

Definition

Returns an enumerator for the names in the project.

public:
 int EnumNames(Microsoft::VisualStudio::Shell::Interop::VSCMDNAMEOPTS grfOptions, [Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::IEnumString ^ % ppEnumString);
public:
 int EnumNames(Microsoft::VisualStudio::Shell::Interop::VSCMDNAMEOPTS grfOptions, [Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::IEnumString ^ &  ppEnumString);
int EnumNames(Microsoft::VisualStudio::Shell::Interop::VSCMDNAMEOPTS grfOptions, [Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::IEnumString const & & ppEnumString);
public int EnumNames (Microsoft.VisualStudio.Shell.Interop.VSCMDNAMEOPTS grfOptions, out Microsoft.VisualStudio.OLE.Interop.IEnumString ppEnumString);
abstract member EnumNames : Microsoft.VisualStudio.Shell.Interop.VSCMDNAMEOPTS * IEnumString -> int
Public Function EnumNames (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::EnumNames(  
   [in] VSCMDNAMEOPTS grfOptions,   
   [out, retval] IEnumString **ppEnumString  
);  

Applies to