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


C# EwsServiceXmlReader.ReadValue方法代码示例

本文整理汇总了C#中EwsServiceXmlReader.ReadValue方法的典型用法代码示例。如果您正苦于以下问题:C# EwsServiceXmlReader.ReadValue方法的具体用法?C# EwsServiceXmlReader.ReadValue怎么用?C# EwsServiceXmlReader.ReadValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在EwsServiceXmlReader的用法示例。


在下文中一共展示了EwsServiceXmlReader.ReadValue方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: TryReadElementFromXml

 /// <summary>
 /// Tries to read element from XML.
 /// </summary>
 /// <param name="reader">The reader.</param>
 /// <returns>True if appropriate element was read.</returns>
 internal override bool TryReadElementFromXml(EwsServiceXmlReader reader)
 {
     switch (reader.LocalName)
     {
         case XmlElementNames.OofState:
             this.state = reader.ReadValue<OofState>();
             return true;
         case XmlElementNames.ExternalAudience:
             this.externalAudience = reader.ReadValue<OofExternalAudience>();
             return true;
         case XmlElementNames.Duration:
             this.duration = new TimeWindow();
             this.duration.LoadFromXml(reader);
             return true;
         case XmlElementNames.InternalReply:
             this.internalReply = new OofReply();
             this.internalReply.LoadFromXml(reader, reader.LocalName);
             return true;
         case XmlElementNames.ExternalReply:
             this.externalReply = new OofReply();
             this.externalReply.LoadFromXml(reader, reader.LocalName);
             return true;
         default:
             return false;
     }
 }
开发者ID:liliankasem,项目名称:ProjectSpikeAPI,代码行数:31,代码来源:OofSettings.cs

示例2: 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.CanDelete:
             this.canDelete = reader.ReadValue<bool>();
             return true;
         case XmlElementNames.CanRenameOrMove:
             this.canRenameOrMove = reader.ReadValue<bool>();
             return true;
         case XmlElementNames.MustDisplayComment:
             this.mustDisplayComment = reader.ReadValue<bool>();
             return true;
         case XmlElementNames.HasQuota:
             this.hasQuota = reader.ReadValue<bool>();
             return true;
         case XmlElementNames.IsManagedFoldersRoot:
             this.isManagedFoldersRoot = reader.ReadValue<bool>();
             return true;
         case XmlElementNames.ManagedFolderId:
             this.managedFolderId = reader.ReadValue();
             return true;
         case XmlElementNames.Comment:
             reader.TryReadValue(ref this.comment);
             return true;
         case XmlElementNames.StorageQuota:
             this.storageQuota = reader.ReadValue<int>();
             return true;
         case XmlElementNames.FolderSize:
             this.folderSize = reader.ReadValue<int>();
             return true;
         case XmlElementNames.HomePage:
             reader.TryReadValue(ref this.homePage);
             return true;
         default:
             return false;
     }
 }
开发者ID:asine,项目名称:ews-managed-api,代码行数:43,代码来源:ManagedFolderInformation.cs

示例3: ReadTextValueFromXml

 /// <summary>
 /// Reads text value from XML.
 /// </summary>
 /// <param name="reader">The reader.</param>
 internal override void ReadTextValueFromXml(EwsServiceXmlReader reader)
 {
     this.text = reader.ReadValue();
 }
开发者ID:liliankasem,项目名称:ProjectSpikeAPI,代码行数:8,代码来源:NormalizedBody.cs

示例4: InternalLoadFromXml

        /// <summary>
        /// Load from XML.
        /// </summary>
        /// <param name="reader">The reader.</param>
        internal override void InternalLoadFromXml(EwsServiceXmlReader reader)
        {
            base.InternalLoadFromXml(reader);

            this.folderId = new FolderId();
            this.folderId.LoadFromXml(reader, reader.LocalName);

            reader.Read();

            this.ParentFolderId = new FolderId();
            this.ParentFolderId.LoadFromXml(reader, XmlElementNames.ParentFolderId);

            switch (this.EventType)
            {
                case EventType.Moved:
                case EventType.Copied:
                    reader.Read();

                    this.oldFolderId = new FolderId();
                    this.oldFolderId.LoadFromXml(reader, reader.LocalName);

                    reader.Read();

                    this.OldParentFolderId = new FolderId();
                    this.OldParentFolderId.LoadFromXml(reader, reader.LocalName);
                    break;

                case EventType.Modified:
                    reader.Read();
                    if (reader.IsStartElement())
                    {
                        reader.EnsureCurrentNodeIsStartElement(XmlNamespace.Types, XmlElementNames.UnreadCount);
                        this.unreadCount = int.Parse(reader.ReadValue());
                    }
                    break;

                default:
                    break;
            }
        }
开发者ID:Pravinmprajapati,项目名称:ews-managed-api,代码行数:44,代码来源:FolderEvent.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.SID:
             this.sID = reader.ReadValue();
             return true;
         case XmlElementNames.PrimarySmtpAddress:
             this.primarySmtpAddress = reader.ReadValue();
             return true;
         case XmlElementNames.DisplayName:
             this.displayName = reader.ReadValue();
             return true;
         case XmlElementNames.DistinguishedUser:
             this.standardUser = reader.ReadValue<StandardUser>();
             return true;
         default:
             return false;
     }
 }
开发者ID:liliankasem,项目名称:ProjectSpikeAPI,代码行数:25,代码来源:UserId.cs

示例6: ReadTextValueFromXml

 /// <summary>
 /// Reads text value from XML.
 /// </summary>
 /// <param name="reader">The reader.</param>
 internal override void ReadTextValueFromXml(EwsServiceXmlReader reader)
 {
     this.content = System.Convert.FromBase64String(reader.ReadValue());
 }
开发者ID:Pravinmprajapati,项目名称:ews-managed-api,代码行数:8,代码来源:MimeContentBase.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.Street:
             this.street = reader.ReadValue<string>();
             return true;
         case XmlElementNames.City:
             this.city = reader.ReadValue<string>();
             return true;
         case XmlElementNames.State:
             this.state = reader.ReadValue<string>();
             return true;
         case XmlElementNames.Country:
             this.country = reader.ReadValue<string>();
             return true;
         case XmlElementNames.PostalCode:
             this.postalCode = reader.ReadValue<string>();
             return true;
         case XmlElementNames.PostOfficeBox:
             this.postOfficeBox = reader.ReadValue<string>();
             return true;
         case XmlElementNames.PostalAddressType:
             this.type = reader.ReadValue<string>();
             return true;
         case XmlElementNames.Latitude:
             this.latitude = reader.ReadValue<double>();
             return true;
         case XmlElementNames.Longitude:
             this.longitude = reader.ReadValue<double>();
             return true;
         case XmlElementNames.Accuracy:
             this.accuracy = reader.ReadValue<double>();
             return true;
         case XmlElementNames.Altitude:
             this.altitude = reader.ReadValue<double>();
             return true;
         case XmlElementNames.AltitudeAccuracy:
             this.altitudeAccuracy = reader.ReadValue<double>();
             return true;
         case XmlElementNames.FormattedAddress:
             this.formattedAddress = reader.ReadValue<string>();
             return true;
         case XmlElementNames.LocationUri:
             this.uri = reader.ReadValue<string>();
             return true;
         case XmlElementNames.LocationSource:
             this.source = reader.ReadValue<LocationSource>();
             return true;
         default:
             return false;
     }
 }
开发者ID:Pravinmprajapati,项目名称:ews-managed-api,代码行数:58,代码来源:PersonaPostalAddress.cs

示例8: 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.UserId:
             this.UserId = new UserId();
             this.UserId.LoadFromXml(reader, reader.LocalName);
             return true;
         case XmlElementNames.CanCreateItems:
             this.canCreateItems = reader.ReadValue<bool>();
             return true;
         case XmlElementNames.CanCreateSubFolders:
             this.canCreateSubFolders = reader.ReadValue<bool>();
             return true;
         case XmlElementNames.IsFolderOwner:
             this.isFolderOwner = reader.ReadValue<bool>();
             return true;
         case XmlElementNames.IsFolderVisible:
             this.isFolderVisible = reader.ReadValue<bool>();
             return true;
         case XmlElementNames.IsFolderContact:
             this.isFolderContact = reader.ReadValue<bool>();
             return true;
         case XmlElementNames.EditItems:
             this.editItems = reader.ReadValue<PermissionScope>();
             return true;
         case XmlElementNames.DeleteItems:
             this.deleteItems = reader.ReadValue<PermissionScope>();
             return true;
         case XmlElementNames.ReadItems:
             this.readItems = reader.ReadValue<FolderPermissionReadAccess>();
             return true;
         case XmlElementNames.PermissionLevel:
         case XmlElementNames.CalendarPermissionLevel:
             this.permissionLevel = reader.ReadValue<FolderPermissionLevel>();
             return true;
         default:
             return false;
     }
 }
开发者ID:liliankasem,项目名称:ProjectSpikeAPI,代码行数:45,代码来源:FolderPermission.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.LocationDisplayName:
             this.displayName = reader.ReadValue<string>();
             return true;
         case XmlElementNames.LocationAnnotation:
             this.annotation = reader.ReadValue<string>();
             return true;
         case XmlElementNames.PersonaPostalAddress:
             this.personaPostalAddress = new PersonaPostalAddress();
             this.personaPostalAddress.LoadFromXml(reader);
             this.personaPostalAddress.OnChange += new ComplexPropertyChangedDelegate(PersonaPostalAddress_OnChange);
             return true;
         default:
             return false;
     }
 }
开发者ID:asine,项目名称:ews-managed-api,代码行数:24,代码来源:EnhancedLocation.cs

示例10: ReadTextValueFromXml

 /// <summary>
 /// Reads text value from XML.
 /// </summary>
 /// <param name="reader">The reader.</param>
 internal override void ReadTextValueFromXml(EwsServiceXmlReader reader)
 {
     this.retentionId = new Guid(reader.ReadValue());
 }
开发者ID:liliankasem,项目名称:ProjectSpikeAPI,代码行数:8,代码来源:RetentionTagBase.cs


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