Class EbicsDateRange
Holds an EBICS DateRange element.
Inherited Members
Namespace: Subsembly.EBICS
Assembly: Subsembly.EBICS.Core.dll
Syntax
public class EbicsDateRange : EbicsElement
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 |
---|---|---|
DateTime | tStart | The desired start date or |
DateTime | tEnd | The desired end date or |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown if the given date range is invalid. |
Properties
DateRangeEnd
Optional end of a requested date range.
Declaration
public DateTime DateRangeEnd { get; }
Property Value
Type | Description |
---|---|
DateTime | The value |
DateRangeStart
Optional start of a requested date range.
Declaration
public DateTime DateRangeStart { get; }
Property Value
Type | Description |
---|---|
DateTime | The value DateTime.MinValue indicates that no start date is set. |
HaveRange
Indicates whether both DateRangeStart and DateRangeEnd
have been set to a value that is not DateTime.MinValue
.
Declaration
public bool HaveRange { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
BuildXml(XmlDocument, EbicsVersion)
Declaration
public override XmlElement BuildXml(XmlDocument xmlDocument, EbicsVersion nVersion)
Parameters
Type | Name | Description |
---|---|---|
XmlDocument | xmlDocument | |
EbicsVersion | nVersion |
Returns
Type | Description |
---|---|
XmlElement |
Overrides
IsInRange(DateTime)
Checks whether a given date and time is contained in this date range.
Declaration
public bool IsInRange(DateTime tDate)
Parameters
Type | Name | Description |
---|---|---|
DateTime | tDate | The date and time that shall be checked. The time portion of this parameter
is effectively ignored. Also, the |
Returns
Type | Description |
---|---|
bool |
Remarks
The comparison fully ignores theDateTime.Kind
and thus may compare
different time zones wrongly.
ParseXml(XmlElement, EbicsVersion)
Declaration
public override void ParseXml(XmlElement xmlElement, EbicsVersion nVersion)
Parameters
Type | Name | Description |
---|---|---|
XmlElement | xmlElement | |
EbicsVersion | nVersion |