IVsTextMarkerClient.OnBufferSave 方法

确定缓冲区是否保存到不同的名称。

命名空间:  Microsoft.VisualStudio.TextManager.Interop
程序集:  Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

语法

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

参数

  • pszFileName
    类型:String

    [in] 文件名与文本缓冲区。 将在文件名不能更改的缓冲区的 nullnull 引用(在 Visual Basic 中为 Nothing) 。

备注

COM 签名

从 textmgr.idl:

HRESULT IVsTextMarkerClient::OnBufferSave(

   [in] LPCOLESTR pszFileName

);

,当缓冲区保存时,调用此方法。

.NET Framework 安全性

请参阅

参考

IVsTextMarkerClient 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间