Table of Contents

Class OFXHeaders

Namespace
Tudormobile.QIFLibrary
Assembly
Tudormobile.QIFLibrary.dll

OFX Data Headers

public class OFXHeaders
Inheritance
OFXHeaders
Inherited Members

Properties

Count

Gets the number of headers.

public int Count { get; }

Property Value

int

this[string]

Gets or sets the value associated with the specified key.

public string this[string key] { get; set; }

Parameters

key string

Header key.

Property Value

string

Header value for the key

Version

OFX Headers Version.

public string Version { get; set; }

Property Value

string

Methods

Add(string, string)

Add a new header value.

public OFXHeaders Add(string key, string value)

Parameters

key string

Header key.

value string

Header value.

Returns

OFXHeaders

Fluent-reference to self.

AsEnumerable()

Provides an enumeration of the headers.

public IEnumerable<KeyValuePair<string, string>> AsEnumerable()

Returns

IEnumerable<KeyValuePair<string, string>>

An enumeration of key-value pairs.

Default(string?)

Creates a new instance of default headers.

public static OFXHeaders Default(string? version = null)

Parameters

version string

Returns

OFXHeaders

Default headers.

Remarks

Default() uses version 1.02 of OFX specification.

HasValue(string)

Query if a given header is present.

public bool HasValue(string key)

Parameters

key string

Name (key) of the header to query.

Returns

bool

(True) if the header us set; otherwise (false).

ToString()

Convert headers to a string.

public override string ToString()

Returns

string

String representation of headers.

ToString(string)

Convert headers to a string.

public string ToString(string newLine)

Parameters

newLine string

Newline sequence to use.

Returns

string

String representation of headers.