VsUndoPackageClass.OpenLinkedUndo(UInt32, String) 方法

定义

打开链接的撤消事务父单元。

public:
 virtual int OpenLinkedUndo(System::UInt32 dwFlags, System::String ^ pszDescription) = Microsoft::VisualStudio::TextManager::Interop::IVsLinkedUndoTransactionManager::OpenLinkedUndo;
public:
 virtual int OpenLinkedUndo(unsigned int dwFlags, Platform::String ^ pszDescription) = Microsoft::VisualStudio::TextManager::Interop::IVsLinkedUndoTransactionManager::OpenLinkedUndo;
 virtual int OpenLinkedUndo(unsigned int dwFlags, std::wstring const & pszDescription);
public virtual int OpenLinkedUndo (uint dwFlags, string pszDescription);
abstract member OpenLinkedUndo : uint32 * string -> int
override this.OpenLinkedUndo : uint32 * string -> int
Public Overridable Function OpenLinkedUndo (dwFlags As UInteger, pszDescription As String) As Integer

参数

dwFlags
UInt32

中从枚举中提取的值 LinkedTransactionFlagsmdtDefault 指定要 nonstrict 的事务,这是默认行为。 其他可能的枚举值为 mdtStrict ,以严格指定撤消链接行为。

pszDescription
String

中描述此操作的本地化字符串;显示在 "撤消"/"重做" 下拉菜单中。 此值不能为 null。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

实现

适用于