IEnumRunningDocuments.Clone(IEnumRunningDocuments) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.