Copies this enumerator to another one that has the same state as the original.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Public Function Clone ( _
<OutAttribute> ByRef enumDependencies As IVsEnumDependencies _
) As Integer
'使用
Dim instance As EnumDependencies
Dim enumDependencies As IVsEnumDependencies
Dim returnValue As Integer
returnValue = instance.Clone(enumDependencies)
public int Clone(
out IVsEnumDependencies enumDependencies
)
public:
virtual int Clone(
[OutAttribute] IVsEnumDependencies^% enumDependencies
) sealed
public final function Clone(
enumDependencies : IVsEnumDependencies
) : int
Parameters
enumDependencies
Type: Microsoft.VisualStudio.Shell.Interop.IVsEnumDependencies%[out] The IVsEnumDependencies interface of the copied enumerator.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IVsEnumDependencies.Clone(IVsEnumDependencies%)
Remarks
This method is an implementation of Clone. It instantiates a new instance of EnumDependencies and sets its index to the index of the original.
Permissions
- 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.