Search Results for

    Show / Hide Table of Contents

    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 Source

    ObjectDisposedWithHistoryException(String)

    Initializes a new instance of the ObjectDisposedWithHistoryException class.

    Declaration
    public ObjectDisposedWithHistoryException(string message)
    Parameters
    Type Name Description
    System.String message

    The error message that explains the reason for the exception.

    Properties

    View Source

    History

    Gets the exception history. List of tuples of descriptions and objects.

    Declaration
    public List<Tuple<string, StackTrace>> History { get; }
    Property Value
    Type Description
    List<Tuple<System.String, StackTrace>>

    Methods

    View Source

    AddHistory(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.String description

    The description for the history.

    View Source

    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.String description

    The description for the history.

    StackTrace trace

    The stack frame for the history.

    View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    Extension Methods

    Serializer.DeepClone<T>(T, ref T)
    Serializer.DeepClone<T>(T, IRecyclingPool<T>)
    Serializer.DeepClone<T>(T)
    • View Source
    In This Article
    • Constructors
      • ObjectDisposedWithHistoryException(String)
    • Properties
      • History
    • Methods
      • AddHistory(String)
      • AddHistory(String, StackTrace)
      • ToString()
    • Extension Methods
    Back to top Privacy & Cookies | Terms Of Use | Trademarks | © Microsoft
    Generated by DocFX