IVsFileChangeEx::AdviseDirChange Method (String^, Int32, IVsFileChangeEvents^, UInt32)
Visual Studio 2015
Enables a client to receive notifications of changes to a directory.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int AdviseDirChange( String^ pszDir, int fWatchSubDir, IVsFileChangeEvents^ pFCE, [OutAttribute] unsigned int% pvsCookie )
Parameters
- pszDir
-
Type:
System::String^
[in] String form of the moniker identifier of the directory in the project system.
- fWatchSubDir
-
Type:
System::Int32
[in] If true, then events should also be fired for changes to sub directories. If false, then events should not be fired for changes to sub directories.
- pFCE
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsFileChangeEvents^
[in] IVsFileChangeEvents Interface on the object requesting notification of file change events.
- pvsCookie
-
Type:
System::UInt32
[out] Unique identifier for the file that is associated with the event sink.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsFileChangeEx::AdviseDirChange( [in] LPCOLESTR pszDir, [in] BOOL fWatchSubDir, [in] IVsFileChangeEvents *pFCE, [out] VSCOOKIE *pvsCookie );
Show: