Class ObjectDisposedWithHistoryException
The exception that is thrown, including history, when an operation is performed on a disposed object.
Inheritance
System.Object
ObjectDisposedWithHistoryException
Namespace: Microsoft.Psi
Assembly: Microsoft.Psi.dll
Syntax
public class ObjectDisposedWithHistoryException : ObjectDisposedException
Constructors
View SourceObjectDisposedWithHistoryException(String)
Initializes a new instance of the Object
Declaration
public ObjectDisposedWithHistoryException(string message)
Parameters
Type | Name | Description |
---|---|---|
System. |
message | The error message that explains the reason for the exception. |
Properties
View SourceHistory
Gets the exception history. List of tuples of descriptions and
Declaration
public List<Tuple<string, StackTrace>> History { get; }
Property Value
Type | Description |
---|---|
List<Tuple<System. |
Methods
View SourceAddHistory(String)
Adds history to the exception with the given description and the caller's stack frame.
Declaration
public void AddHistory(string description)
Parameters
Type | Name | Description |
---|---|---|
System. |
description | The description for the history. |
AddHistory(String, StackTrace)
Adds history to the exception with the given description and stack frame.
Declaration
public void AddHistory(string description, StackTrace trace)
Parameters
Type | Name | Description |
---|---|---|
System. |
description | The description for the history. |
Stack |
trace | The stack frame for the history. |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |