Share via


VsEnumerable<TComEnumerator, TComEnumerated, TEnumerated>.Clone Method

Creates a copy of the enumerator and all its descendants. The returned enumerator contains the same enumeration state as the current one.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Public Function Clone ( _
    <OutAttribute> ByRef ppEnum As TComEnumerator _
) As Integer
public int Clone(
    out TComEnumerator ppEnum
)
public:
virtual int Clone(
    [OutAttribute] TComEnumerator% ppEnum
) sealed
abstract Clone : 
        ppEnum:'TComEnumerator byref -> int  
override Clone : 
        ppEnum:'TComEnumerator byref -> int
public final function Clone(
    ppEnum : TComEnumerator
) : int

Parameters

  • ppEnum
    Type: TComEnumerator%

    Address of a pointer to the copied enumerator.

Return Value

Type: Int32
S_OK if successful, or an error otherwise.

.NET Framework Security

See Also

Reference

VsEnumerable<TComEnumerator, TComEnumerated, TEnumerated> Class

Microsoft.VisualStudio.Shell Namespace