IVsNonLocalProject.EnsureLocalCopy Method

Verifies that there is a local copy of the file.

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

Syntax

'宣言
Function EnsureLocalCopy ( _
    itemid As UInteger _
) As Integer
'使用
Dim instance As IVsNonLocalProject
Dim itemid As UInteger
Dim returnValue As Integer

returnValue = instance.EnsureLocalCopy(itemid)
int EnsureLocalCopy(
    uint itemid
)
int EnsureLocalCopy(
    [InAttribute] unsigned int itemid
)
function EnsureLocalCopy(
    itemid : uint
) : int

Parameters

Return Value

Type: System.Int32

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsNonLocalProject::EnsureLocalCopy(
   [in] VSITEMID itemid
);

Permissions

See Also

Reference

IVsNonLocalProject Interface

IVsNonLocalProject Members

Microsoft.VisualStudio.Shell.Interop Namespace