Freigeben über


IVsEnumOutputs.Clone Method

Creates another enumerator that contains the same enumeration state as the current one.

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

Syntax

'Declaration
Function Clone ( _
    <OutAttribute> ByRef ppIVsEnumOutputs As IVsEnumOutputs _
) As Integer
int Clone(
    out IVsEnumOutputs ppIVsEnumOutputs
)
int Clone(
    [OutAttribute] IVsEnumOutputs^% ppIVsEnumOutputs
)
abstract Clone : 
        ppIVsEnumOutputs:IVsEnumOutputs byref -> int
function Clone(
    ppIVsEnumOutputs : IVsEnumOutputs
) : int

Parameters

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsEnumOutputs::Clone(
   [out] IVsEnumOutputs **ppIVsEnumOutputs
);

Using this method, the environment can record a particular point in the enumeration sequence and return to that point later. The new enumerator works on the same set of output items as the original enumerator.

.NET Framework Security

See Also

Reference

IVsEnumOutputs Interface

Microsoft.VisualStudio.Shell.Interop Namespace