次の方法で共有


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

Parameters

ppenum
IVsEnumCommentTaskTokens

[out] Pointer to the cloned IVsEnumCommentTaskTokens interface.

Returns

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

Remarks

COM Signature

From vsshell.idl:

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

Using this method, a client can record a snapshot of the enumeration sequence and later return to that point. The new enumerator supports the same interface as the original one.

Applies to