当前位置: 首页>>代码示例>>C#>>正文


C# EwsServiceXmlReader.ReadElementValueAsDateTime方法代码示例

本文整理汇总了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;
     }
 }
开发者ID:Pravinmprajapati,项目名称:ews-managed-api,代码行数:31,代码来源:ChangeHighlights.cs

示例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);
        }
开发者ID:liliankasem,项目名称:ProjectSpikeAPI,代码行数:13,代码来源:TimeWindow.cs

示例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;
     }
 }
开发者ID:asine,项目名称:ews-managed-api,代码行数:25,代码来源:Flag.cs

示例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;
     }
 }
开发者ID:Pravinmprajapati,项目名称:ews-managed-api,代码行数:16,代码来源:DeletedOccurrenceInfo.cs

示例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;
     }
 }
开发者ID:asine,项目名称:ews-managed-api,代码行数:26,代码来源:OccurrenceInfo.cs

示例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;
     }
 }
开发者ID:liliankasem,项目名称:ProjectSpikeAPI,代码行数:25,代码来源:ApprovalRequestData.cs

示例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);
     }
 }
开发者ID:asine,项目名称:ews-managed-api,代码行数:22,代码来源:Attendee.cs

示例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;
        }
开发者ID:XavierDa,项目名称:ews-managed-api,代码行数:30,代码来源:OutOfOfficeInsightValue.cs

示例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);
            }
        }
开发者ID:liliankasem,项目名称:ProjectSpikeAPI,代码行数:38,代码来源:MeetingSuggestion.cs

示例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;
         }
     }
 }
开发者ID:asine,项目名称:ews-managed-api,代码行数:23,代码来源:EndDateRecurrenceRange.cs

示例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);
 }
开发者ID:liliankasem,项目名称:ProjectSpikeAPI,代码行数:9,代码来源:GetPasswordExpirationDateResponse.cs


注:本文中的EwsServiceXmlReader.ReadElementValueAsDateTime方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。