初始化 CompoundViewAction 类的新实例。
命名空间: Microsoft.VisualStudio.Package
程序集: Microsoft.VisualStudio.Package.LanguageService(在 Microsoft.VisualStudio.Package.LanguageService.dll 中)
Microsoft.VisualStudio.Package.LanguageService.11.0(在 Microsoft.VisualStudio.Package.LanguageService.11.0.dll 中)
Microsoft.VisualStudio.Package.LanguageService.9.0(在 Microsoft.VisualStudio.Package.LanguageService.9.0.dll 中)
Microsoft.VisualStudio.Package.LanguageService.10.0(在 Microsoft.VisualStudio.Package.LanguageService.10.0.dll 中)
语法
声明
Public Sub New ( _
view As IVsTextView, _
description As String _
)
public CompoundViewAction(
IVsTextView view,
string description
)
参数
- view
类型:Microsoft.VisualStudio.TextManager.Interop.IVsTextView
[in] 表示是接收编辑操作的视图的 IVsTextView 对象。
- description
类型:System.String
[in] 包含描述的字符串标记来取消事件。
备注
此构造函数缓存 IVsTextView 对象,从 IVsTextView 对象的 IVsCompoundAction 接口,并调用 IVsCompoundAction 接口的 OpenCompoundAction 方法。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。