Aracılığıyla paylaş


IVsFileChangeEx.AdviseDirChange Yöntem (String, Int32, IVsFileChangeEvents, UInt32)

 

Değişikliklerin bir dizine bildirimleri almak bir istemci sağlar.

Ad Alanı:   Microsoft.VisualStudio.Shell.Interop
Derleme:  Microsoft.VisualStudio.Shell.Interop (Microsoft.VisualStudio.Shell.Interop.dll içinde)

Sözdizimi

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

Parametreler

  • pszDir
    Type: System.String

    [in] Dizin ad tanıtıcısı biçiminin proje sistemde dize.

  • fWatchSubDir
    Type: System.Int32

    [in] Varsa true, sonra da değişikliklerin alt dizinler için olaylar. Varsa false, sonra da değişikliklerin alt dizinler için olaylar değil.

  • pvsCookie
    Type: System.UInt32

    [out] Olay iç havuz ile ilişkili olan dosya için benzersiz tanımlayıcı.

Dönüş Değeri

Type: System.Int32

Yöntem başarılı olursa, döndürür S_OK. Başarısız olursa, bir hata kodu döndürür.

Notlar

COM imza

Vsshell.idl:

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

Ayrıca bkz.

IVsFileChangeEx Arabirim
Microsoft.VisualStudio.Shell.Interop Ad Alanı

Başa dön