次の方法で共有


IVsPersistDocData2.ReloadDocData Method

Reloads the document data and in the process determines whether to ignore a subsequent file change.

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

Syntax

'宣言
Function ReloadDocData ( _
    grfFlags As UInteger _
) As Integer
'使用
Dim instance As IVsPersistDocData2
Dim grfFlags As UInteger
Dim returnValue As Integer

returnValue = instance.ReloadDocData(grfFlags)
int ReloadDocData(
    uint grfFlags
)
int ReloadDocData(
    [InAttribute] unsigned int grfFlags
)
function ReloadDocData(
    grfFlags : uint
) : int

Parameters

  • grfFlags
    Type: System.UInt32

    [in] Flag indicating whether to ignore the next file change when reloading the document data. See the data type _VSRELOADDOCDATA.

Return Value

Type: System.Int32

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

Implements

IVsPersistDocData.ReloadDocData(UInt32)

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsPersistDocData2::ReloadDocData(
   [in] VSRELOADDOCDATA grfFlags
);

Permissions

See Also

Reference

IVsPersistDocData2 Interface

IVsPersistDocData2 Members

Microsoft.VisualStudio.Shell.Interop Namespace