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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。