다음을 통해 공유


IVsFileChangeEvents.DirectoryChanged Method

Notifies clients of changes made to a directory.

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

Syntax

‘선언
Function DirectoryChanged ( _
    pszDirectory As String _
) As Integer
‘사용 방법
Dim instance As IVsFileChangeEvents
Dim pszDirectory As String
Dim returnValue As Integer

returnValue = instance.DirectoryChanged(pszDirectory)
int DirectoryChanged(
    string pszDirectory
)
int DirectoryChanged(
    [InAttribute] String^ pszDirectory
)
abstract DirectoryChanged : 
        pszDirectory:string -> int 
function DirectoryChanged(
    pszDirectory : String
) : int

Parameters

  • pszDirectory
    Type: System.String
    [in] Name of the directory that had a change.

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 vsshell.idl:

HRESULT IVsFileChangeEvents::DirectoryChanged(
   [in] LPCOLESTR pszDirectory
);

The change could have happened in a sub-directory if sub-directories are also being watched.

.NET Framework Security

See Also

Reference

IVsFileChangeEvents Interface

IVsFileChangeEvents Members

Microsoft.VisualStudio.Shell.Interop Namespace