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
this[string]
Gets or sets the value associated with the specified key.
public string this[string key] { get; set; }
Parameters
keystringHeader key.
Property Value
- string
Header value for the key
Version
OFX Headers Version.
public string Version { get; set; }
Property Value
Methods
Add(string, string)
Add a new header value.
public OFXHeaders Add(string key, string value)
Parameters
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
versionstring
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
keystringName (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
newLinestringNewline sequence to use.
Returns
- string
String representation of headers.