The Sandbox type exposes the following members.

Constructors

  NameDescription
Sandbox
Creates a root sandbox.

Methods

  NameDescription
Abort
Aborts all actions in progress within this context.
CreateChild
Creates a child sandbox.
Dispose
Disposes the sandbox.
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType
Gets the Type of the current instance.
(Inherited from Object.)
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protect
Runs an action inside of a protected context wherein it cannot receive a thread abort from this Sandbox.
Run
Runs a test action.
StartTimer
Uses a specified timeout for all actions run within a block of code. When the timeout expires, the sandbox will be aborted.
ToString
Returns a String that represents the current Object.
(Inherited from Object.)

Extension Methods

  NameDescription
FormatOverloaded.

Properties

  NameDescription
AbortMessage
Gets a message that will be logged when the sandbox is aborted, or null if none.
AbortOutcome
Returns the TestOutcome passed to Abort(TestOutcome, String), or null if Abort(TestOutcome, String) has not been called.
WasAborted
Returns true if Abort(TestOutcome, String) was called.

Events

  NameDescription
Aborted
An event that is dispatched when Abort(TestOutcome, String) is called.

See Also