确定缓冲区是否保存到不同的名称。
命名空间: 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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。