共用方式為


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

'宣告
Sub OnBufferSave ( _
    pszFileName As String _
)
'用途
Dim instance As IVsTextMarkerClient
Dim pszFileName As String

instance.OnBufferSave(pszFileName)
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

IVsTextMarkerClient Members

Microsoft.VisualStudio.TextManager.Interop Namespace