Class Date
Namespace: Aspose.Medical.Dicom.Elements
Assembly: Aspose.Medical.dll (25.11.0)
Encapsulates the Date (DA) VR type. https://dicom.nema.org/medical/dicom/current/output/chtml/part05/sect_6.2.html#:~:text=DA-,Date,-A%20string%20of .
public sealed class Date : MultiValueDateTextElement<dateonly>, IElementInheritance
object ← TextElement ← MultiValueTextElement ← MultiValueDateTextElement<dateonly> ← Date
Implements
Inherited Members
MultiValueDateTextElement<dateonly>.Get() , MultiValueDateTextElement<dateonly>.GetRanges() , MultiValueTextElement.Add(string) , MultiValueTextElement.AddRange(IEnumerable<string>) , MultiValueTextElement.Get<t>(int) , MultiValueTextElement.Get<t>(Index) , MultiValueTextElement.GetOrDefault<t>(int) , MultiValueTextElement.GetOrDefault<t>(Index) , MultiValueTextElement.GetValues<t>() , MultiValueTextElement.GetValues<t>(Range) , MultiValueTextElement.Insert(int, string) , MultiValueTextElement.Remove(string) , MultiValueTextElement.RemoveAt(int) , MultiValueTextElement.Replace(IEnumerable<string>) , MultiValueTextElement.ToString() , MultiValueTextElement.TryGetValue<t>(int, out T?) , MultiValueTextElement.TryGetValue<t>(Index, out T?) , MultiValueTextElement.Data , MultiValueTextElement.Count , TextElement.Get<t>(int) , TextElement.Get<t>(Index) , TextElement.GetOrDefault<t>(int) , TextElement.GetOrDefault<t>(Index) , TextElement.GetValues<t>() , TextElement.GetValues<t>(Range) , TextElement.TryGetValue<t>(int, out T?) , TextElement.TryGetValue<t>(Index, out T?) , TextElement.Count , TextElement.Tag , TextElement.ValueRepresentation , object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
Date(Tag, Span<dateonly>)
public Date(Tag tag, Span<dateonly> data)Parameters
tag Tag
Exceptions
The provided data are invalid.
Date(Tag, Span<string>)
public Date(Tag tag, Span<string> data)Parameters
tag Tag
Exceptions
The provided data are invalid.
Properties
AvailableFormats
Supported date formats. Read-only System.String[].
protected override string[] AvailableFormats { get; }Property Value
string []
FormatProvider
Default format provider used to parse System.DateOnly. Read-only System.Globalization.CultureInfo.
protected override CultureInfo FormatProvider { get; }Property Value
ValueRepresentation
The Value Representation of the element. Read-only Aspose.Medical.Dicom.Elements.IElement.ValueRepresentation.
public override ValueRepresentation ValueRepresentation { get; }Property Value
Methods
Accept(Walker)
Dispatches (delegates) a request to the accepted walker.
protected override void Accept(Walker walker)Parameters
walker Walker
A walker to be used for traversal and perform operations.
AcceptAsync(AsyncWalker)
Asynchronously dispatches (delegates) a request to the accepted walker.
protected override Task AcceptAsync(AsyncWalker walker)Parameters
walker AsyncWalker
A walker to be used for traversal and perform operations.
Returns
TryParse(string, out DateOnly)
Converts the string representation of a System.DateOnly to its typed equivalent. A return value indicates whether the conversion succeeded.
protected override bool TryParse(string input, out DateOnly result)Parameters
input string
A text containing a System.DateOnly to convert.
result DateOnly
When this method returns, contains the System.DateOnly value equivalent
of the System.DateOnly contained in input,
if the conversion succeeded, or a default value if the conversion failed.
Returns
true if input was converted successfully;
otherwise, false.
</string></dateonly></t></t></t></t></t></t></t></t></t></t></string></t></t></t></t></t></t></string></dateonly></dateonly></dateonly>