Class ObjectDisposedWithHistoryException
The exception that is thrown, including history, when an operation is performed on a disposed object.
Namespace: Microsoft.Psi
Assembly: Microsoft.Psi.dll
Syntax
public class ObjectDisposedWithHistoryException : ObjectDisposedException
Constructors
View SourceObjectDisposedWithHistoryException(String)
Initializes a new instance of the ObjectDisposedWithHistoryException class.
Declaration
public ObjectDisposedWithHistoryException(string message)
Parameters
Type | Name | Description |
---|---|---|
String | 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<String, StackTrace>> |
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 |
---|---|---|
String | 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 |
---|---|---|
String | description | The description for the history. |
StackTrace | trace | The stack frame for the history. |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |