IcsTemporalValue
OfficeIMO.Email
A parsed iCalendar DATE or DATE-TIME value that retains its original time semantics.
Inheritance
- ValueType
- IcsTemporalValue
Usage
Explore 17 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 13
- Extension method ContentLineComponent.GetTemporalValue
- Method IcsComponentExtensions.GetTemporalValue
- Method IcsTemporalValue.Date
- Method IcsTemporalValue.Floating
- Method IcsTemporalValue.Parse
- Method IcsTemporalValue.Utc
- Method IcsTemporalValue.Zoned
- Property OutlookRecurrenceIcsException.End
- Property OutlookRecurrenceIcsException.OriginalStart
- Property OutlookRecurrenceIcsException.Start
- Property OutlookRecurrenceIcsExportResult.ExcludedDates
- Property OutlookRecurrenceIcsImportOptions.ExcludedDates
- Property OutlookRecurrenceIcsImportOptions.Start
Accepted by parameters 4
- Extension method ContentLineComponent.SetTemporalValue
- Method IcsComponentExtensions.SetTemporalValue
- Method IcsTemporalValue.Equals
- Method IcsTemporalValue.TryParse
Methods
public void ApplyTo(ContentLineProperty property) #Applies this value and its VALUE/TZID parameters to a property.
Parameters
- property OfficeIMO.Email.ContentLineProperty
public static IcsTemporalValue Date(DateTime value) #Creates a DATE value.
Parameters
- value System.DateTime
Returns
IcsTemporalValuepublic bool Equals(IcsTemporalValue other) #Indicates whether the current object is equal to another object of the same type.
Parameters
- other OfficeIMO.Email.IcsTemporalValue
- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.public override bool Equals(object? obj) #Indicates whether this instance and a specified object are equal.
Parameters
- obj object?
- The object to compare with the current instance.
Returns
bool true if obj and this instance are the same type and represent the same value; otherwise, false.public static IcsTemporalValue Floating(DateTime value) #Creates a floating DATE-TIME value.
Parameters
- value System.DateTime
Returns
IcsTemporalValuepublic override int GetHashCode() #Returns the hash code for this instance.
Returns
int A 32-bit signed integer that is the hash code for this instance.public static IcsTemporalValue Parse(ContentLineProperty property) #Parses a temporal content-line property.
Parameters
- property OfficeIMO.Email.ContentLineProperty
Returns
IcsTemporalValuepublic static bool TryParse(ContentLineProperty? property, out IcsTemporalValue value) #Attempts to parse a temporal property while preserving DATE, floating, UTC, and TZID forms.
Parameters
- property OfficeIMO.Email.ContentLineProperty?
- value OfficeIMO.Email.IcsTemporalValue
Returns
boolpublic static IcsTemporalValue Utc(DateTimeOffset value) #Creates a UTC DATE-TIME value.
Parameters
- value System.DateTimeOffset
Returns
IcsTemporalValuepublic static IcsTemporalValue Zoned(DateTime localValue, string timeZoneId) #Creates a TZID-local DATE-TIME value without resolving the identifier through the host OS.
Parameters
- localValue System.DateTime
- timeZoneId string
Returns
IcsTemporalValueInherited Methods
Properties
public DateTime Value { get; } #Clock value. Inspect IcsTemporalValue.Kind before interpreting it.
public string? TimeZoneId { get; } #TZID for IcsTemporalValueKind.ZonedDateTime.
public bool IsLeapSecond { get; } #Whether the parsed DATE-TIME used the RFC 5545 leap-second value 60. When true, IcsTemporalValue.Value is the normalized following instant while serialization restores second 60.