IVsEnumBufferCoordinatorSpans.Clone Method
Returns a copy of the current enumeration as a separate object.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Syntax
声明
Function Clone ( _
<OutAttribute> ByRef ppEnum As IVsEnumBufferCoordinatorSpans _
) As Integer
int Clone(
out IVsEnumBufferCoordinatorSpans ppEnum
)
int Clone(
[OutAttribute] IVsEnumBufferCoordinatorSpans^% ppEnum
)
abstract Clone :
ppEnum:IVsEnumBufferCoordinatorSpans byref -> int
function Clone(
ppEnum : IVsEnumBufferCoordinatorSpans
) : int
Parameters
- ppEnum
Type: Microsoft.VisualStudio.TextManager.Interop.IVsEnumBufferCoordinatorSpans%
[out] Returns a copy of this enumeration as a separate object.
Return Value
Type: System.Int32
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.