共用方式為


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 命名空間