Udostępnij za pośrednictwem


Metoda IVsFileChangeEx.AdviseDirChange — (String, Int32, IVsFileChangeEvents, UInt32)

 

Umożliwia klientowi otrzymywać powiadomienia o zmianach w katalogu.

Przestrzeń nazw:   Microsoft.VisualStudio.Shell.Interop
Zestaw:  Microsoft.VisualStudio.Shell.Interop (w Microsoft.VisualStudio.Shell.Interop.dll)

Składnia

int AdviseDirChange(
    string pszDir,
    int fWatchSubDir,
    IVsFileChangeEvents pFCE,
    out uint pvsCookie
)
int AdviseDirChange(
    String^ pszDir,
    int fWatchSubDir,
    IVsFileChangeEvents^ pFCE,
    [OutAttribute] unsigned int% pvsCookie
)
abstract AdviseDirChange : 
        pszDir:string *
        fWatchSubDir:int *
        pFCE:IVsFileChangeEvents *
        pvsCookie:uint32 byref -> int
Function AdviseDirChange (
    pszDir As String,
    fWatchSubDir As Integer,
    pFCE As IVsFileChangeEvents,
    <OutAttribute> ByRef pvsCookie As UInteger
) As Integer

Parametry

  • pszDir
    Type: System.String

    [in] Ciąg formularza identyfikatora krótkiej nazwy katalogu systemu projektu.

  • fWatchSubDir
    Type: System.Int32

    [in] Jeśli true, a następnie zdarzenia powinien także uruchamiane pod kątem zmian AD katalogów. Jeśli false, a następnie zdarzenia nie powinny uruchamiane pod kątem zmian AD katalogów.

  • pvsCookie
    Type: System.UInt32

    [out] Unikatowy identyfikator pliku, który jest skojarzony z obiektu sink zdarzenia.

Wartość zwracana

Type: System.Int32

Jeśli metoda zakończy się pomyślnie, zwraca S_OK. Jeśli nie, zwraca kod błędu.

Uwagi

Podpis COM

Z vsshell.idl:

HRESULT IVsFileChangeEx::AdviseDirChange(
   [in] LPCOLESTR pszDir,
   [in] BOOL fWatchSubDir,
   [in] IVsFileChangeEvents *pFCE,
   [out] VSCOOKIE *pvsCookie
);

Zobacz też

Interfejs IVsFileChangeEx
Przestrzeń nazw Microsoft.VisualStudio.Shell.Interop

Powrót do początku