共用方式為


IVsStringMap.EnumKeys(IEnumString) Method

Definition

Returns an enumeration of the key-value pairs.

public:
 int EnumKeys([Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::IEnumString ^ % ppEnum);
public:
 int EnumKeys([Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::IEnumString ^ &  ppEnum);
int EnumKeys([Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::IEnumString const & & ppEnum);
public int EnumKeys (out Microsoft.VisualStudio.OLE.Interop.IEnumString ppEnum);
abstract member EnumKeys : IEnumString -> int
Public Function EnumKeys (ByRef ppEnum As IEnumString) As Integer

Parameters

ppEnum
IEnumString

[out] The IEnumString interface.

Returns

Returns S_OK if the enumeration was returned.

Remarks

For users of native code, note that IEnumString::Next returns LPOLESTRs, which must be freed by the caller usingCoTaskMemFree.

Applies to