Partager via


IVsIntellisenseProjectEventSink.OnCodeFileChange Method

Called when the source code file changes.

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

Syntax

'Déclaration
Function OnCodeFileChange ( _
    pszOldCodeFile As String, _
    pszNewCodeFile As String _
) As Integer
'Utilisation
Dim instance As IVsIntellisenseProjectEventSink
Dim pszOldCodeFile As String
Dim pszNewCodeFile As String
Dim returnValue As Integer

returnValue = instance.OnCodeFileChange(pszOldCodeFile, _
    pszNewCodeFile)
int OnCodeFileChange(
    string pszOldCodeFile,
    string pszNewCodeFile
)
int OnCodeFileChange(
    [InAttribute] String^ pszOldCodeFile, 
    [InAttribute] String^ pszNewCodeFile
)
abstract OnCodeFileChange : 
        pszOldCodeFile:string * 
        pszNewCodeFile:string -> int 
function OnCodeFileChange(
    pszOldCodeFile : String, 
    pszNewCodeFile : String
) : int

Parameters

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

.NET Framework Security

See Also

Reference

IVsIntellisenseProjectEventSink Interface

IVsIntellisenseProjectEventSink Members

Microsoft.VisualStudio.Shell.Interop Namespace