Class Time

Class Time

Namespace: Aspose.Medical.Dicom.Elements
Assembly: Aspose.Medical.dll (25.11.0)

Encapsulates the Time (TM) VR type. https://dicom.nema.org/medical/dicom/current/output/chtml/part05/sect_6.2.html#:~:text=TM-,Time,-A%20string%20of .

public sealed class Time : MultiValueDateTextElement<timeonly>, IElement

Inheritance

object TextElement MultiValueTextElement MultiValueDateTextElement<timeonly> Time

Implements

IElement

Inherited Members

MultiValueDateTextElement<timeonly>.Get() , MultiValueDateTextElement<timeonly>.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

Time(Tag, Span<timeonly>)

public Time(Tag tag, Span<timeonly> data)

Parameters

tag Tag

data Span < TimeOnly &gt;

Exceptions

DicomValidationException

The provided data are invalid.

Time(Tag, Span<string>)

public Time(Tag tag, Span<string> data)

Parameters

tag Tag

data Span < string &gt;

Exceptions

DicomValidationException

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.TimeOnly. Read-only System.Globalization.CultureInfo.

protected override CultureInfo FormatProvider { get; }

Property Value

CultureInfo

ValueRepresentation

The Value Representation of the element. Read-only Aspose.Medical.Dicom.Elements.IElement.ValueRepresentation.

public override ValueRepresentation ValueRepresentation { get; }

Property Value

ValueRepresentation

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

Task

TryParse(string, out TimeOnly)

Converts the string representation of a System.TimeOnly to its typed equivalent. A return value indicates whether the conversion succeeded.

protected override bool TryParse(string input, out TimeOnly result)

Parameters

input string

A text containing a System.TimeOnly to convert.

result TimeOnly

When this method returns, contains the System.TimeOnly value equivalent of the System.TimeOnly contained in input, if the conversion succeeded, or a default value if the conversion failed.

Returns

bool

true if input was converted successfully; otherwise, false. </string></timeonly></t></t></t></t></t></t></t></t></t></t></string></t></t></t></t></t></t></string></timeonly></timeonly></timeonly>