7 [PermissionSet(
SecurityAction.InheritanceDemand, Name =
"FullTrust")]
10 private bool committed;
12 private bool canceled;
14 private bool suppressedFinalization;
48 if (!canceled && !committed)
52 suppressedFinalization =
true;
60 if (!committed && !canceled)
64 suppressedFinalization =
true;
78 Dispose(disposing:
false);
84 Dispose(disposing:
true);
85 if (!suppressedFinalization)
94 protected virtual void Dispose(
bool disposing)
abstract void OnCancel()
Raises the Cancel event.
abstract void OnCommit()
Performs the actual work of committing a transaction.
static void SuppressFinalize(object obj)
Requests that the common language runtime not call the finalizer for the specified object.
Provides a mechanism for releasing unmanaged resources.To browse the .NET Framework source code for t...
void Commit()
Commits this transaction.
string Description
Gets a description for the transaction.
SecurityAction
Specifies the security actions that can be performed using declarative security.
void Cancel()
Cancels the transaction and attempts to roll back the changes made by the events of the transaction.
virtual void Dispose(bool disposing)
Releases the unmanaged resources used by the T:System.ComponentModel.Design.DesignerTransaction and o...
bool Committed
Gets a value indicating whether the transaction was committed.
Controls the system garbage collector, a service that automatically reclaims unused memory.
bool Canceled
Gets a value indicating whether the transaction was canceled.
Provides a way to group a series of design-time actions to improve performance and enable most types ...
DesignerTransaction(string description)
Initializes a new instance of the T:System.ComponentModel.Design.DesignerTransaction class using the ...
DesignerTransaction()
Initializes a new instance of the T:System.ComponentModel.Design.DesignerTransaction class with no de...
void Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resourc...