次の方法で共有


IVsEnumDependencies.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

'宣言
Function Clone ( _
    <OutAttribute> ByRef ppIVsEnumDependencies As IVsEnumDependencies _
) As Integer
'使用
Dim instance As IVsEnumDependencies
Dim ppIVsEnumDependencies As IVsEnumDependencies
Dim returnValue As Integer

returnValue = instance.Clone(ppIVsEnumDependencies)
int Clone(
    out IVsEnumDependencies ppIVsEnumDependencies
)
int Clone(
    [OutAttribute] IVsEnumDependencies^% ppIVsEnumDependencies
)
function Clone(
    ppIVsEnumDependencies : IVsEnumDependencies
) : int

Parameters

Return Value

Type: System.Int32

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsEnumDependencies::Clone(
   [out] IVsEnumDependencies **ppIVsEnumDependencies
);

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.

Permissions

See Also

Reference

IVsEnumDependencies Interface

IVsEnumDependencies Members

Microsoft.VisualStudio.Shell.Interop Namespace