VsEnumerable<TComEnumerator, TComEnumerated, TEnumerated>.GetElement Method
Converts an element in the enumerated input collection of type TEnumerated to a TComEnumerated element to be returned by the Visual Studio-style enumerator.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'宣言
Protected MustOverride Sub GetElement ( _
enumeratedElement As TEnumerated, _
<OutAttribute> ByRef comElement As TComEnumerated _
)
protected abstract void GetElement(
TEnumerated enumeratedElement,
out TComEnumerated comElement
)
Parameters
- enumeratedElement
Type: TEnumerated
An element in the input enumerated collection.
- comElement
Type: TComEnumerated%
An element to be returned by the Next method of the COM enumerator.
Remarks
For example, converts a UIDataSourceVerb to the COM-enumerated type "string" by selecting the verb's name.
.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.
See Also
Reference
VsEnumerable<TComEnumerator, TComEnumerated, TEnumerated> Class