打开复合事件并设置起点在单个 取消/重做 单元将分组的一组操作。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
语法
声明
Function OpenCompoundAction ( _
pszDescription As String _
) As Integer
int OpenCompoundAction(
string pszDescription
)
int OpenCompoundAction(
[InAttribute] String^ pszDescription
)
abstract OpenCompoundAction :
pszDescription:string -> int
function OpenCompoundAction(
pszDescription : String
) : int
参数
pszDescription
类型:String为 null 指针已停止包含元素声明的字符串。
返回值
类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
备注
COM 签名
从 textmgr.idl:
HRESULT IVsCompoundAction::OpenCompoundAction(
[in] const WCHAR *pszDescription
);
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。