IVsTextManager::SuspendFileChangeAdvise Method (String^, Int32)

 

Suspends file change notifications for a given file.

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

int SuspendFileChangeAdvise(
	String^ pszFileName,
	int fSuspend
)

Parameters

pszFileName
Type: System::String^

[in] File on which to suspend notification of changes made.

fSuspend
Type: System::Int32

[in] true if change notification is suspended on the specified file name.

Return Value

Type: System::Int32

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

From textmgr.idl:

HRESULT IVsTextManager::SuspendFileChangeAdvise(
   [in] const WCHAR *pszFileName,
    [in] BOOL fSuspend
);

Use this method to suspend external notification (for example, from source code control) that files have changed.

Return to top
Show: