IVsCompoundAction.OpenCompoundAction 方法

打开复合事件并设置起点在单个 取消/重做 单元将分组的一组操作。

命名空间:  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 安全性

请参阅

参考

IVsCompoundAction 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间