Skip to content

Class ExcelPowerQueryMetaDataEntry

Namespace: OfficeOpenXml.Data.Connection
Assembly: EPPlus.dll

An entity in the meta data entity collection for Power Query.

public class ExcelPowerQueryMetaDataEntry

Inheritance

object ← ExcelPowerQueryMetaDataEntry

Inherited Members

object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()

Constructors

ExcelPowerQueryMetaDataEntry(string, object, bool, bool)

Create a new ExcelPowerQueryMetaDataEntry validating the type and value according to the ValidEntries

public ExcelPowerQueryMetaDataEntry(string type, object value, bool ignoreUnknownEntries = true, bool validateDataTypeForKnownEntries = true)

Parameters

type string

The Entry type.

value object

The value of the Entry. This value must be of type, string, integer, bool, datetime or double.

ignoreUnknownEntries bool

If true(default), EPPlus will ignore and preserve values not present in the ValidEntries dictionary

validateDataTypeForKnownEntries bool

Exceptions

ArgumentException

Fields

ValidEntries

The valid entries and there data types. Data Types can be b=bool, s=string, i=integer, d=date/time and f=double. Entry types are case-sensitive.

public static readonly Dictionary<string, string> ValidEntries

Field Value

Dictionary<string, string>

Properties

EntryType

The entry type. Please see ValidEntries for valid entries.

public string EntryType { get; }

Property Value

string

Value

The value for the entry.

public object Value { get; }

Property Value

object

Methods

GetValueAsText(CultureInfo)

Get the value formatted according to the supplied culture.

public string GetValueAsText(CultureInfo culture)

Parameters

culture CultureInfo

Returns

string

ToString()

Return the object as a string.

public override string ToString()

Returns

string