次の方法で共有


IVsEnumBufferCoordinatorSpans.Clone(IVsEnumBufferCoordinatorSpans) Method

Definition

Returns a copy of the current enumeration as a separate object.

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

Parameters

ppEnum
IVsEnumBufferCoordinatorSpans

[out] Returns a copy of this enumeration as a separate object.

Returns

If successful, returns S_OK; otherwise, returns an error code.

Remarks

COM Signature

From singlefileeditor.idl:

HRESULT Clone(  
   [out] IVsEnumBufferCoordinatorSpans** ppEnum  
);  

The copy of the enumeration has the same state as the original at the time this method is called. However, the copy's and the original's states are separate and can be changed individually.

Applies to