Share via


IEnumRunningDocuments.Clone(IEnumRunningDocuments) Method

Definition

Creates a copy of this IEnumRunningDocuments object.

public:
 int Clone([Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IEnumRunningDocuments ^ % ppenum);
public:
 int Clone([Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IEnumRunningDocuments ^ &  ppenum);
int Clone([Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IEnumRunningDocuments const & & ppenum);
public int Clone (out Microsoft.VisualStudio.Shell.Interop.IEnumRunningDocuments ppenum);
abstract member Clone : IEnumRunningDocuments -> int
Public Function Clone (ByRef ppenum As IEnumRunningDocuments) As Integer

Parameters

ppenum
IEnumRunningDocuments

[out] Returns a new IEnumRunningDocuments object.

Returns

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.

Applies to