Share via


IEnumRunningDocuments.Clone Method

Creates a copy of this IEnumRunningDocuments object.

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

Syntax

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

Parameters

Return Value

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

Remarks

C++

From vsshell.idl:

HRESULT IEnumRunningDocuments::Clone(
   [out] IEnumRunningDocuments **ppenum
);

The returned IEnumRunningDocuments object is completely distinct from the object it was cloned from.

.NET Framework Security

See Also

Reference

IEnumRunningDocuments Interface

Microsoft.VisualStudio.Shell.Interop Namespace