C# 클래스 EditorConfig.VisualStudio.Helpers.UndoTransactionHelper

A helper class for performing actions within the context of an undo transaction.
파일 보기 프로젝트 열기: editorconfig/editorconfig-visualstudio

공개 메소드들

메소드 설명
Run ( System.Action tryAction, Action catchAction = null ) : void

Runs the specified try action within a try block, and conditionally the catch action within a catch block.

Run ( Func undoConditions, System.Action tryAction, Action catchAction ) : void

Runs the specified try action within a try block, and conditionally the catch action within a catch block all conditionally within the context of an undo transaction.

UndoTransactionHelper ( _DTE package, string transactionName ) : System

Initializes a new instance of the UndoTransactionHelper class.

메소드 상세

Run() 공개 메소드

Runs the specified try action within a try block, and conditionally the catch action within a catch block.
public Run ( System.Action tryAction, Action catchAction = null ) : void
tryAction System.Action The action to be performed within a try block.
catchAction Action The action to be performed wihin a catch block.
리턴 void

Run() 공개 메소드

Runs the specified try action within a try block, and conditionally the catch action within a catch block all conditionally within the context of an undo transaction.
public Run ( Func undoConditions, System.Action tryAction, Action catchAction ) : void
undoConditions Func A set of additional conditions for wrapping in an undo context.
tryAction System.Action The action to be performed within a try block.
catchAction Action The action to be performed wihin a catch block.
리턴 void

UndoTransactionHelper() 공개 메소드

Initializes a new instance of the UndoTransactionHelper class.
public UndoTransactionHelper ( _DTE package, string transactionName ) : System
package _DTE The hosting package.
transactionName string The name of the transaction.
리턴 System