IVsEnumExternalErrors.Clone(IVsEnumExternalErrors) 方法

定义

以单独的对象的形式返回当前枚举的副本。

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

参数

ppErrors
IVsEnumExternalErrors

弄以单独的对象的形式返回此枚举的副本。

返回

Int32

如果成功, S_OK 则返回; 否则返回错误代码。

注解

COM 签名

从 singlefileeditor:

HRESULT Clone(  
   [out] IVsEnumExternalErrors **ppErrors  
);  

调用此方法时,该枚举的副本具有与原始的相同的状态。 但是,副本的和原始状态是独立的,可以单独更改。

适用于