Class EbicsDateRange
Holds an EBICS DateRange element.
Inherited Members
Namespace: Subsembly.EBICS
Assembly: Subsembly.EBICS.Core.dll
Syntax
public class EbicsDateRange : EbicsElement
Remarks
An EbicsDateRange is used in various order parameters.
Constructors
EbicsDateRange()
Creates an empty date range.
Declaration
public EbicsDateRange()
EbicsDateRange(DateTime, DateTime)
Creates a particular date range.
Declaration
public EbicsDateRange(DateTime tStart, DateTime tEnd)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | tStart | The desired start date or DateTime.MinValue to indicate that no start date shall be set. |
System.DateTime | tEnd | The desired start end or DateTime.MinValue to indicate that no end date shall be set. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown if the given date range is invalid. |
Properties
DateRangeEnd
Optional end of a requested date range.
Declaration
public DateTime DateRangeEnd { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime | The value DateTime.MinValue indicates that no end date is set. Do not use the value DateTime.MaxValue here! |
Remarks
If DateRangeEnd is set to a value different than DateTime.MinValue, then DateRangeStart must be set to a valid date, too.
DateRangeStart
Optional start of a requested date range.
Declaration
public DateTime DateRangeStart { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime | The value DateTime.MinValue indicates that no start date is set. |
Remarks
If DateRangeStart is set to a value different than DateTime.MinValue, then DateRangeEnd must be set to a valid date, too.
HaveRange
Indicates whether a complete date range has been set.
Declaration
public bool HaveRange { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
BuildXml(XmlDocument, EbicsVersion)
Declaration
public override XmlElement BuildXml(XmlDocument xmlDocument, EbicsVersion nVersion)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlDocument | xmlDocument | |
EbicsVersion | nVersion |
Returns
Type | Description |
---|---|
System.Xml.XmlElement |
Overrides
ParseXml(XmlElement, EbicsVersion)
Declaration
public override void ParseXml(XmlElement xmlElement, EbicsVersion nVersion)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlElement | xmlElement | |
EbicsVersion | nVersion |