共用方式為


IEnumRunningDocuments.Clone Method

Creates a copy of this IEnumRunningDocuments object.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'宣告
Function Clone ( _
    <OutAttribute> ByRef ppenum As IEnumRunningDocuments _
) As Integer
'用途
Dim instance As IEnumRunningDocuments
Dim ppenum As IEnumRunningDocuments
Dim returnValue As Integer

returnValue = instance.Clone(ppenum)
int Clone(
    out IEnumRunningDocuments ppenum
)
int Clone(
    [OutAttribute] IEnumRunningDocuments^% ppenum
)
abstract Clone : 
        ppenum:IEnumRunningDocuments byref -> int 
function Clone(
    ppenum : IEnumRunningDocuments
) : int

Parameters

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

C++

From vsshell.idl:

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

The returned IEnumRunningDocuments object is completely distinct from the object it was cloned from.

.NET Framework Security

See Also

Reference

IEnumRunningDocuments Interface

IEnumRunningDocuments Members

Microsoft.VisualStudio.Shell.Interop Namespace