本文整理汇总了C#中EwsServiceXmlReader.ReadElementValueAsDateTime方法的典型用法代码示例。如果您正苦于以下问题:C# EwsServiceXmlReader.ReadElementValueAsDateTime方法的具体用法?C# EwsServiceXmlReader.ReadElementValueAsDateTime怎么用?C# EwsServiceXmlReader.ReadElementValueAsDateTime使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EwsServiceXmlReader
的用法示例。
在下文中一共展示了EwsServiceXmlReader.ReadElementValueAsDateTime方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TryReadElementFromXml
/// <summary>
/// Tries to read element from XML.
/// </summary>
/// <param name="reader">The reader.</param>
/// <returns>True if element was read.</returns>
internal override bool TryReadElementFromXml(EwsServiceXmlReader reader)
{
switch (reader.LocalName)
{
case XmlElementNames.HasLocationChanged:
this.hasLocationChanged = reader.ReadElementValue<bool>();
return true;
case XmlElementNames.Location:
this.location = reader.ReadElementValue();
return true;
case XmlElementNames.HasStartTimeChanged:
this.hasStartTimeChanged = reader.ReadElementValue<bool>();
return true;
case XmlElementNames.Start:
this.start = reader.ReadElementValueAsDateTime().Value;
return true;
case XmlElementNames.HasEndTimeChanged:
this.hasEndTimeChanged = reader.ReadElementValue<bool>();
return true;
case XmlElementNames.End:
this.end = reader.ReadElementValueAsDateTime().Value;
return true;
default:
return false;
}
}
示例2: LoadFromXml
/// <summary>
/// Loads from XML.
/// </summary>
/// <param name="reader">The reader.</param>
internal void LoadFromXml(EwsServiceXmlReader reader)
{
reader.EnsureCurrentNodeIsStartElement(XmlNamespace.Types, XmlElementNames.Duration);
this.startTime = reader.ReadElementValueAsDateTime(XmlNamespace.Types, XmlElementNames.StartTime).Value;
this.endTime = reader.ReadElementValueAsDateTime(XmlNamespace.Types, XmlElementNames.EndTime).Value;
reader.ReadEndElement(XmlNamespace.Types, XmlElementNames.Duration);
}
示例3: TryReadElementFromXml
/// <summary>
/// Tries to read element from XML.
/// </summary>
/// <param name="reader">The reader.</param>
/// <returns>True if element was read.</returns>
internal override bool TryReadElementFromXml(EwsServiceXmlReader reader)
{
switch (reader.LocalName)
{
case XmlElementNames.FlagStatus:
this.flagStatus = reader.ReadElementValue<ItemFlagStatus>();
return true;
case XmlElementNames.StartDate:
this.startDate = reader.ReadElementValueAsDateTime().Value;
return true;
case XmlElementNames.DueDate:
this.dueDate = reader.ReadElementValueAsDateTime().Value;
return true;
case XmlElementNames.CompleteDate:
this.completeDate = reader.ReadElementValueAsDateTime().Value;
return true;
default:
return false;
}
}
示例4: TryReadElementFromXml
/// <summary>
/// Tries to read element from XML.
/// </summary>
/// <param name="reader">The reader.</param>
/// <returns>True if element was read.</returns>
internal override bool TryReadElementFromXml(EwsServiceXmlReader reader)
{
switch (reader.LocalName)
{
case XmlElementNames.Start:
this.originalStart = reader.ReadElementValueAsDateTime().Value;
return true;
default:
return false;
}
}
示例5: TryReadElementFromXml
/// <summary>
/// Tries to read element from XML.
/// </summary>
/// <param name="reader">The reader.</param>
/// <returns>True if element was read.</returns>
internal override bool TryReadElementFromXml(EwsServiceXmlReader reader)
{
switch (reader.LocalName)
{
case XmlElementNames.ItemId:
this.itemId = new ItemId();
this.itemId.LoadFromXml(reader, reader.LocalName);
return true;
case XmlElementNames.Start:
this.start = reader.ReadElementValueAsDateTime().Value;
return true;
case XmlElementNames.End:
this.end = reader.ReadElementValueAsDateTime().Value;
return true;
case XmlElementNames.OriginalStart:
this.originalStart = reader.ReadElementValueAsDateTime().Value;
return true;
default:
return false;
}
}
示例6: TryReadElementFromXml
/// <summary>
/// Tries to read element from XML.
/// </summary>
/// <param name="reader">The reader.</param>
/// <returns>True if element was read.</returns>
internal override bool TryReadElementFromXml(EwsServiceXmlReader reader)
{
switch (reader.LocalName)
{
case XmlElementNames.IsUndecidedApprovalRequest:
this.isUndecidedApprovalRequest = reader.ReadElementValue<bool>();
return true;
case XmlElementNames.ApprovalDecision:
this.approvalDecision = reader.ReadElementValue<int>();
return true;
case XmlElementNames.ApprovalDecisionMaker:
this.approvalDecisionMaker = reader.ReadElementValue<string>();
return true;
case XmlElementNames.ApprovalDecisionTime:
this.approvalDecisionTime = reader.ReadElementValueAsDateTime().Value;
return true;
default:
return false;
}
}
示例7: TryReadElementFromXml
/// <summary>
/// Tries to read element from XML.
/// </summary>
/// <param name="reader">The reader.</param>
/// <returns>True if element was read.</returns>
internal override bool TryReadElementFromXml(EwsServiceXmlReader reader)
{
switch (reader.LocalName)
{
case XmlElementNames.Mailbox:
this.LoadFromXml(reader, reader.LocalName);
return true;
case XmlElementNames.ResponseType:
this.responseType = reader.ReadElementValue<MeetingResponseType>();
return true;
case XmlElementNames.LastResponseTime:
this.lastResponseTime = reader.ReadElementValueAsDateTime();
return true;
default:
return base.TryReadElementFromXml(reader);
}
}
示例8: TryReadElementFromXml
/// <summary>
/// Tries to read element from XML.
/// </summary>
/// <param name="reader">XML reader</param>
/// <returns>Whether the element was read</returns>
internal override bool TryReadElementFromXml(EwsServiceXmlReader reader)
{
switch (reader.LocalName)
{
case XmlElementNames.InsightSource:
this.InsightSource = reader.ReadElementValue<InsightSourceType>();
break;
case XmlElementNames.StartTime:
this.startTime = reader.ReadElementValueAsDateTime(XmlNamespace.Types, XmlElementNames.StartTime).Value;
break;
case XmlElementNames.EndTime:
this.endTime = reader.ReadElementValueAsDateTime(XmlNamespace.Types, XmlElementNames.EndTime).Value;
break;
case XmlElementNames.Culture:
this.culture = reader.ReadElementValue();
break;
case XmlElementNames.Message:
this.message = reader.ReadElementValue();
break;
default:
return false;
}
return true;
}
示例9: TryReadElementFromXml
/// <summary>
/// Tries to read element from XML.
/// </summary>
/// <param name="reader">The reader.</param>
/// <returns>True if element was read.</returns>
internal override bool TryReadElementFromXml(EwsServiceXmlReader reader)
{
switch (reader.LocalName)
{
case XmlElementNames.NlgAttendees:
this.Attendees = new EmailUserEntityCollection();
this.Attendees.LoadFromXml(reader, XmlNamespace.Types, XmlElementNames.NlgAttendees);
return true;
case XmlElementNames.NlgLocation:
this.Location = reader.ReadElementValue();
return true;
case XmlElementNames.NlgSubject:
this.Subject = reader.ReadElementValue();
return true;
case XmlElementNames.NlgMeetingString:
this.MeetingString = reader.ReadElementValue();
return true;
case XmlElementNames.NlgStartTime:
this.StartTime = reader.ReadElementValueAsDateTime();
return true;
case XmlElementNames.NlgEndTime:
this.EndTime = reader.ReadElementValueAsDateTime();
return true;
default:
return base.TryReadElementFromXml(reader);
}
}
示例10: TryReadElementFromXml
/// <summary>
/// Tries to read element from XML.
/// </summary>
/// <param name="reader">The reader.</param>
/// <returns>True if element was read.</returns>
internal override bool TryReadElementFromXml(EwsServiceXmlReader reader)
{
if (base.TryReadElementFromXml(reader))
{
return true;
}
else
{
switch (reader.LocalName)
{
case XmlElementNames.EndDate:
this.endDate = reader.ReadElementValueAsDateTime().Value;
return true;
default:
return false;
}
}
}
示例11: ReadElementsFromXml
/// <summary>
/// Reads response elements from XML.
/// </summary>
/// <param name="reader">The reader.</param>
internal override void ReadElementsFromXml(EwsServiceXmlReader reader)
{
base.ReadElementsFromXml(reader);
this.passwordExpirationDate = reader.ReadElementValueAsDateTime(XmlNamespace.NotSpecified, XmlElementNames.PasswordExpirationDate);
}