VsEnumerable<TComEnumerator,TComEnumerated>.GetElement Method

Definition

Converts an element in the enumerated input collection of type TEnumerated to a TComEnumerated element to be returned by the Visual Studio-style enumerator.

C++/CX
protected:
 override void GetElement(TComEnumerated enumeratedElement, [Runtime::InteropServices::Out] TComEnumerated &  comElement);

Parameters

enumeratedElement
TComEnumerated

An element in the input enumerated collection.

comElement
TComEnumerated

An element to be returned by the Next method of the COM enumerator.

Remarks

For example, converts a <xref:Microsoft.Internal.VisualStudio.PlatformUI.UIDataSourceVerb> to the COM-enumerated type "string" by selecting the verb's name.

Applies to

製品 バージョン
Visual Studio SDK 2015, 2017, 2019, 2022