Class ExcelErrorCodes
Represents an Excel error code.
Inheritance
System.Object
ExcelErrorCodes
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: OfficeOpenXml.FormulaParsing.Exceptions
Assembly: EPPlus.dll
Syntax
public class ExcelErrorCodes
Properties
Code
The error code
Declaration
public string Code { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Name
Represents a cell name error
Declaration
public static ExcelErrorCodes Name { get; }
Property Value
| Type | Description |
|---|---|
| ExcelErrorCodes |
NoValueAvaliable
Reprecents a N/A error
Declaration
public static ExcelErrorCodes NoValueAvaliable { get; }
Property Value
| Type | Description |
|---|---|
| ExcelErrorCodes |
Value
Represents a cell value error
Declaration
public static ExcelErrorCodes Value { get; }
Property Value
| Type | Description |
|---|---|
| ExcelErrorCodes |
Methods
Equals(Object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| System.Boolean | true if the specified object is equal to the current object; otherwise, false. |
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Returns the hash code for this string.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| System.Int32 | The hash code |
Overrides
System.Object.GetHashCode()
IsErrorCode(Object)
Returns true if valueToTest matches an error code.
Declaration
public static bool IsErrorCode(object valueToTest)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | valueToTest |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Operators
Equality(ExcelErrorCodes, ExcelErrorCodes)
Equal operator
Declaration
public static bool operator ==(ExcelErrorCodes c1, ExcelErrorCodes c2)
Parameters
| Type | Name | Description |
|---|---|---|
| ExcelErrorCodes | c1 | The first error code to match |
| ExcelErrorCodes | c2 | The second error code to match |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Inequality(ExcelErrorCodes, ExcelErrorCodes)
Not equal operator
Declaration
public static bool operator !=(ExcelErrorCodes c1, ExcelErrorCodes c2)
Parameters
| Type | Name | Description |
|---|---|---|
| ExcelErrorCodes | c1 | The first error code to match |
| ExcelErrorCodes | c2 | The second error code to match |
Returns
| Type | Description |
|---|---|
| System.Boolean |