次の方法で共有


IVsEnumLibraries2.Clone(IVsEnumLibraries2) Method

Definition

Creates another enumerator that contains the same enumeration state as the current one.

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

Parameters

ppEnum
IVsEnumLibraries2

[out] The IVsEnumLibraries2 that represents a new cloned enumerator set to the same state as the current enumerator.If the method is unsuccessful, the value of ppEnum is undefined.

Returns

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

Remarks

COM Signature

From vsshell80.idl:

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

Applies to