IVsCmdNameMapping.EnumNames Method
Returns an enumerator for the names in the project.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function EnumNames ( _
grfOptions As VSCMDNAMEOPTS, _
<OutAttribute> ByRef ppEnumString As IEnumString _
) As Integer
int EnumNames(
VSCMDNAMEOPTS grfOptions,
out IEnumString ppEnumString
)
int EnumNames(
[InAttribute] VSCMDNAMEOPTS grfOptions,
[OutAttribute] IEnumString^% ppEnumString
)
abstract EnumNames :
grfOptions:VSCMDNAMEOPTS *
ppEnumString:IEnumString byref -> int
function EnumNames(
grfOptions : VSCMDNAMEOPTS,
ppEnumString : IEnumString
) : int
Parameters
- grfOptions
Type: Microsoft.VisualStudio.Shell.Interop.VSCMDNAMEOPTS
[in] Bit flags specifying what form of the macro name to retrieve. Values taken from the VSCMDNAMEOPTS enumeration.
- ppEnumString
Type: Microsoft.VisualStudio.OLE.Interop.IEnumString%
[out] An IEnumString interface to iterate through the strings returned.
Return Value
Type: System.Int32
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
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.