IVsTextManager.SuspendFileChangeAdvise Method

Suspends file change notifications for a given file.

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

Syntax

'Declaration
Function SuspendFileChangeAdvise ( _
    pszFileName As String, _
    fSuspend As Integer _
) As Integer
int SuspendFileChangeAdvise(
    string pszFileName,
    int fSuspend
)
int SuspendFileChangeAdvise(
    [InAttribute] String^ pszFileName, 
    [InAttribute] int fSuspend
)
abstract SuspendFileChangeAdvise : 
        pszFileName:string * 
        fSuspend:int -> int 
function SuspendFileChangeAdvise(
    pszFileName : String, 
    fSuspend : int
) : int

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.

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.

.NET Framework Security

See Also

Reference

IVsTextManager Interface

Microsoft.VisualStudio.TextManager.Interop Namespace