IVsTextManager.SuspendFileChangeAdvise(String, Int32) IVsTextManager.SuspendFileChangeAdvise(String, Int32) IVsTextManager.SuspendFileChangeAdvise(String, Int32) IVsTextManager.SuspendFileChangeAdvise(String, Int32) IVsTextManager.SuspendFileChangeAdvise(String, Int32) IVsTextManager.SuspendFileChangeAdvise(String, Int32) Method

Definition

Suspends file change notifications for a given file.

public:
 int SuspendFileChangeAdvise(System::String ^ pszFileName, int fSuspend);
public:
 int SuspendFileChangeAdvise(Platform::String ^ pszFileName, int fSuspend);
int SuspendFileChangeAdvise(std::wstring const & pszFileName, int fSuspend);
public int SuspendFileChangeAdvise (string pszFileName, int fSuspend);
abstract member SuspendFileChangeAdvise : string * int -> int
Public Function SuspendFileChangeAdvise (pszFileName As String, fSuspend As Integer) As Integer

Parameters

pszFileName
String String String String String String

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

fSuspend
Int32 Int32 Int32 Int32 Int32 Int32

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

Returns

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

Remarks

COM Signature

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.

Applies to