VsUndoPackageClass.OpenLinkedUndo Method
Opens a linked undo transaction parent unit.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
'Declaration
Public Overridable Function OpenLinkedUndo ( _
dwFlags As UInteger, _
pszDescription As String _
) As Integer
public virtual int OpenLinkedUndo(
uint dwFlags,
string pszDescription
)
public:
virtual int OpenLinkedUndo(
[InAttribute] unsigned int dwFlags,
[InAttribute] String^ pszDescription
)
abstract OpenLinkedUndo :
dwFlags:uint32 *
pszDescription:string -> int
override OpenLinkedUndo :
dwFlags:uint32 *
pszDescription:string -> int
public function OpenLinkedUndo(
dwFlags : uint,
pszDescription : String
) : int
Parameters
dwFlags
Type: System.UInt32[in] Value taken from the LinkedTransactionFlags enumeration. mdtDefault specifies the transaction to be nonstrict, which is default behavior. The other possible enum value is mdtStrict that specifies the undo linking behavior as strict.
pszDescription
Type: System.String[in] Localized string that describes this action; appears in the undo/redo dropdown menus. This value may not be nulla null reference (Nothing in Visual Basic).
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IVsLinkedUndoTransactionManager.OpenLinkedUndo(UInt32, String)
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.