Aspose::Email::Mapi::MapiCalendarTimeZone Class Referencefinal

Represents the mapi calendar time zone information More...

Inherits Object.

Public Member Functions

System::String get_KeyName () const
 Gets a human-readable description of the time zone More...
 
void set_KeyName (System::String value)
 Sets a human-readable description of the time zone More...
 
System::SharedPtr< MapiCalendarTimeZoneInfoCollectionget_TimeZoneRules () const
 Gets the time zone rules More...
 
void set_TimeZoneRules (System::SharedPtr< MapiCalendarTimeZoneInfoCollection > value)
 Sets the time zone rules More...
 
 MapiCalendarTimeZone ()
 Initializes a new instance of the MapiCalendarTimeZone class. More...
 
 MapiCalendarTimeZone (System::SharedPtr< System::TimeZoneInfo > timeZone)
 Creates a new instance of the MapiCalendarTimeZone class from a Standard Timezone. More...
 
void ToIcalendar (System::SharedPtr< Aspose::Email::Calendar::Model::CalendarObject > calendarObject)
 Converts the properties of this instance into the corresponding component and properties of iCalendar More...
 
System::ArrayPtr< uint8_t > ToByteArray ()
 
System::DateTime ToTimeZone (System::DateTime value)
 Applies this timezone to the specified datetime More...
 
System::DateTime FromCurrentTimeZoneToUtc (System::DateTime value)
 Convert value from current time zone to UTC More...
 

Static Public Member Functions

static System::SharedPtr< MapiCalendarTimeZoneParseTimeZoneStruct (System::ArrayPtr< uint8_t > timeZoneStruct)
 Parses the time zone information from the time zone struct More...
 
static System::SharedPtr< MapiCalendarTimeZoneParseApptTimeZoneDefRecur (System::ArrayPtr< uint8_t > apptTimeZoneDefRecur)
 Parses the time zone rule information from the AppointmentTimeZoneDefinitionRecur More...
 

Friends

class Aspose::Email::Mapi::MapiCalendar
 
class Aspose::Email::Mapi::MapiCalendarEventRecurrence
 
class Aspose::Email::Mapi::MapiCalendarRecurrencePatternFactory
 
class Aspose::Email::Mapi::MapiMessage
 

Detailed Description

Represents the mapi calendar time zone information

Constructor & Destructor Documentation

◆ MapiCalendarTimeZone() [1/2]

Aspose::Email::Mapi::MapiCalendarTimeZone::MapiCalendarTimeZone ( )

Initializes a new instance of the MapiCalendarTimeZone class.

◆ MapiCalendarTimeZone() [2/2]

Aspose::Email::Mapi::MapiCalendarTimeZone::MapiCalendarTimeZone ( System::SharedPtr< System::TimeZoneInfo >  timeZone)

Creates a new instance of the MapiCalendarTimeZone class from a Standard Timezone.

Parameters
timeZoneStandart TimezoneSystem::TimeZoneInfo.

Member Function Documentation

◆ FromCurrentTimeZoneToUtc()

System::DateTime Aspose::Email::Mapi::MapiCalendarTimeZone::FromCurrentTimeZoneToUtc ( System::DateTime  value)

Convert value from current time zone to UTC

◆ get_KeyName()

System::String Aspose::Email::Mapi::MapiCalendarTimeZone::get_KeyName ( ) const

Gets a human-readable description of the time zone

◆ get_TimeZoneRules()

System::SharedPtr<MapiCalendarTimeZoneInfoCollection> Aspose::Email::Mapi::MapiCalendarTimeZone::get_TimeZoneRules ( ) const

Gets the time zone rules

◆ ParseApptTimeZoneDefRecur()

static System::SharedPtr<MapiCalendarTimeZone> Aspose::Email::Mapi::MapiCalendarTimeZone::ParseApptTimeZoneDefRecur ( System::ArrayPtr< uint8_t >  apptTimeZoneDefRecur)
static

Parses the time zone rule information from the AppointmentTimeZoneDefinitionRecur

Parameters
apptTimeZoneDefRecurA byte array containing AppointmentTimeZoneDefinitionRecur
Exceptions
ArgumentNullExceptionapptTimeZoneDefRecur is null
Returns
A parsed MapiCalendarTimeZoneInfo

◆ ParseTimeZoneStruct()

static System::SharedPtr<MapiCalendarTimeZone> Aspose::Email::Mapi::MapiCalendarTimeZone::ParseTimeZoneStruct ( System::ArrayPtr< uint8_t >  timeZoneStruct)
static

Parses the time zone information from the time zone struct

Parameters
timeZoneStructA byte array representing the time zone struct
Exceptions
ArgumentNullExceptiontimeZoneStruct is null
ArgumentExceptiontimeZoneStruct does not contain enough bytes
Returns
A parsed MapiCalendarTimeZone

◆ set_KeyName()

void Aspose::Email::Mapi::MapiCalendarTimeZone::set_KeyName ( System::String  value)

Sets a human-readable description of the time zone

◆ set_TimeZoneRules()

void Aspose::Email::Mapi::MapiCalendarTimeZone::set_TimeZoneRules ( System::SharedPtr< MapiCalendarTimeZoneInfoCollection value)

Sets the time zone rules

◆ ToByteArray()

System::ArrayPtr<uint8_t> Aspose::Email::Mapi::MapiCalendarTimeZone::ToByteArray ( )

◆ ToIcalendar()

void Aspose::Email::Mapi::MapiCalendarTimeZone::ToIcalendar ( System::SharedPtr< Aspose::Email::Calendar::Model::CalendarObject >  calendarObject)

Converts the properties of this instance into the corresponding component and properties of iCalendar

Parameters
calendarObjectA CalendarObject to add properties to

◆ ToTimeZone()

System::DateTime Aspose::Email::Mapi::MapiCalendarTimeZone::ToTimeZone ( System::DateTime  value)

Applies this timezone to the specified datetime

Parameters
valueA DateTime
Returns

Friends And Related Function Documentation

◆ Aspose::Email::Mapi::MapiCalendar

friend class Aspose::Email::Mapi::MapiCalendar
friend

◆ Aspose::Email::Mapi::MapiCalendarEventRecurrence

◆ Aspose::Email::Mapi::MapiCalendarRecurrencePatternFactory

◆ Aspose::Email::Mapi::MapiMessage

friend class Aspose::Email::Mapi::MapiMessage
friend