Partager via


IVsTextMarkerClient.OnBufferSave Method

Determines whether the buffer was saved to a different name.

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

Syntax

'Declaration
Sub OnBufferSave ( _
    pszFileName As String _
)
void OnBufferSave(
    string pszFileName
)
void OnBufferSave(
    String^ pszFileName
)
abstract OnBufferSave : 
        pszFileName:string -> unit
function OnBufferSave(
    pszFileName : String
)

Parameters

  • pszFileName
    Type: System.String

    [in] File name associated with the text buffer. Can be nulla null reference (Nothing in Visual Basic) in buffers where the file name cannot change.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsTextMarkerClient::OnBufferSave(

   [in] LPCOLESTR pszFileName

);

This method is called when the buffer is saved.

.NET Framework Security

See Also

Reference

IVsTextMarkerClient Interface

Microsoft.VisualStudio.TextManager.Interop Namespace