Show / Hide Table of Contents

Class ErcResult<T>

A basic object which contains a generic type and exception.

Inheritance
System.Object
ErcCore
ErcResult<T>
Inherited Members
ErcCore.ErcVersion
ErcCore.WorkingDirectory
ErcCore.Author
ErcCore.SystemErrorLogPath
ErcCore.PatternStandardPath
ErcCore.PatternExtendedPath
ErcCore.GetHandleInformation(IntPtr, UInt32)
ErcCore.SetWorkingDirectory(String)
ErcCore.SetPatternStandardPath(String)
ErcCore.SetPatternExtendedPath(String)
ErcCore.SetAuthor(String)
ErcCore.SetErrorFile(String)
ErcCore.LogEvent(Exception)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ERC
Assembly: ERC.Net.dll
Syntax
public class ErcResult<T> : ErcCore
Type Parameters
Name Description
T

A generic type

Constructors

ErcResult(ErcCore)

Base constructor.

Declaration
public ErcResult(ErcCore core)
Parameters
Type Name Description
ErcCore core

The ErcCore object to inherit from.

ErcResult(ErcCore, String)

Base constructor with a custom location for exceptions to be logged.

Declaration
public ErcResult(ErcCore core, string errorFile)
Parameters
Type Name Description
ErcCore core

The ErcCore object to inherit from.

System.String errorFile

The location to log exceptions.

Properties

Error

Exception to be logged by LogEvent().

Declaration
public Exception Error { get; set; }
Property Value
Type Description
System.Exception

ReturnValue

Generic Type.

Declaration
public T ReturnValue { get; set; }
Property Value
Type Description
T

Methods

LogEvent()

Logs an event to the ErrorLogFile value.

Declaration
public void LogEvent()

ToString()

Override of the ToString method. Returns a string containing values relevant to the object.

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

A string containing information about the object.

Overrides
System.Object.ToString()
Back to top Generated by DocFX