當前位置: 首頁>>代碼示例>>C#>>正文


C# Data.EwsServiceXmlWriter類代碼示例

本文整理匯總了C#中Microsoft.Exchange.WebServices.Data.EwsServiceXmlWriter的典型用法代碼示例。如果您正苦於以下問題:C# EwsServiceXmlWriter類的具體用法?C# EwsServiceXmlWriter怎麽用?C# EwsServiceXmlWriter使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


EwsServiceXmlWriter類屬於Microsoft.Exchange.WebServices.Data命名空間,在下文中一共展示了EwsServiceXmlWriter類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: WriteAttributesToXml

 /// <summary>
 /// Writes the attributes to XML.
 /// </summary>
 /// <param name="writer">The writer.</param>
 internal override void WriteAttributesToXml(EwsServiceXmlWriter writer)
 {
     if (this.serviceObjType == ServiceObjectType.Item)
     {
         writer.WriteAttributeValue(XmlAttributeNames.Traversal, this.Traversal);
     }
 }
開發者ID:Pravinmprajapati,項目名稱:ews-managed-api,代碼行數:11,代碼來源:SeekToConditionItemView.cs

示例2: InternalWriteViewToXml

        /// <summary>
        /// Write to XML.
        /// </summary>
        /// <param name="writer">The writer.</param>
        internal override void InternalWriteViewToXml(EwsServiceXmlWriter writer)
        {
            base.InternalWriteViewToXml(writer);

            writer.WriteAttributeValue(XmlAttributeNames.Offset, this.Offset);
            writer.WriteAttributeValue(XmlAttributeNames.BasePoint, this.OffsetBasePoint);
        }
開發者ID:liliankasem,項目名稱:ProjectSpikeAPI,代碼行數:11,代碼來源:PagedView.cs

示例3: InternalWriteSearchSettingsToXml

 /// <summary>
 /// Internals the write search settings to XML.
 /// </summary>
 /// <param name="writer">The writer.</param>
 /// <param name="groupBy">The group by clause.</param>
 internal override void InternalWriteSearchSettingsToXml(EwsServiceXmlWriter writer, Grouping groupBy)
 {
     if (groupBy != null)
     {
         groupBy.WriteToXml(writer);
     }
 }
開發者ID:liliankasem,項目名稱:ProjectSpikeAPI,代碼行數:12,代碼來源:PagedView.cs

示例4: WriteElementsToXml

 /// <summary>
 /// Writes elements to XML.
 /// </summary>
 /// <param name="writer">The writer.</param>
 internal override void WriteElementsToXml(EwsServiceXmlWriter writer)
 {
     writer.WriteElementValue(
         XmlNamespace.Types,
         XmlElementNames.StartDate,
         EwsUtilities.DateTimeToXSDate(this.StartDate));
 }
開發者ID:liliankasem,項目名稱:ProjectSpikeAPI,代碼行數:11,代碼來源:RecurrenceRange.cs

示例5: WriteElementsToXml

 /// <summary>
 /// Writes elements to XML.
 /// </summary>
 /// <param name="writer">The writer.</param>
 internal override void WriteElementsToXml(EwsServiceXmlWriter writer)
 {
     if (this.Content != null && this.Content.Length > 0)
     {
         writer.WriteBase64ElementValue(this.Content);
     }
 }
開發者ID:Pravinmprajapati,項目名稱:ews-managed-api,代碼行數:11,代碼來源:MimeContentBase.cs

示例6: WritePropertyValueToXml

        /// <summary>
        /// Writes to XML.
        /// </summary>
        /// <param name="writer">The writer.</param>
        /// <param name="propertyBag">The property bag.</param>
        /// <param name="isUpdateOperation">Indicates whether the context is an update operation.</param>
        internal override void WritePropertyValueToXml(
            EwsServiceXmlWriter writer,
            PropertyBag propertyBag,
            bool isUpdateOperation)
        {
            object value = propertyBag[this];

            if (value != null)
            {
                if (writer.Service.RequestedServerVersion == ExchangeVersion.Exchange2007_SP1)
                {
                    ExchangeService service = writer.Service as ExchangeService;
                    if (service != null && service.Exchange2007CompatibilityMode == false)
                    {
                        MeetingTimeZone meetingTimeZone = new MeetingTimeZone((TimeZoneInfo)value);
                        meetingTimeZone.WriteToXml(writer, XmlElementNames.MeetingTimeZone);
                    }
                }
                else
                {
                    base.WritePropertyValueToXml(
                        writer,
                        propertyBag,
                        isUpdateOperation);
                }
            }
        }
開發者ID:Pravinmprajapati,項目名稱:ews-managed-api,代碼行數:33,代碼來源:StartTimeZonePropertyDefinition.cs

示例7: WriteElementsToXml

 /// <summary>
 /// Writes elements to XML.
 /// </summary>
 /// <param name="writer">The writer.</param>
 internal override void WriteElementsToXml(EwsServiceXmlWriter writer)
 {
     if (null != this.clientExtension)
     {
         this.clientExtension.WriteToXml(writer, XmlNamespace.Types, XmlElementNames.ClientExtension);
     }
 }
開發者ID:Pravinmprajapati,項目名稱:ews-managed-api,代碼行數:11,代碼來源:SetClientExtensionAction.cs

示例8: WriteElementsToXml

        /// <summary>
        /// Writes the elements to XML.
        /// </summary>
        /// <param name="writer">The writer.</param>
        internal override void WriteElementsToXml(EwsServiceXmlWriter writer)
        {
            writer.WriteStartElement(XmlNamespace.Types, XmlElementNames.Mailbox);
            writer.WriteElementValue(XmlNamespace.Types, XmlElementNames.Address, this.SmtpAddress);
            writer.WriteEndElement(); // Mailbox

            this.OofSettings.WriteToXml(writer, XmlElementNames.UserOofSettings);
        }
開發者ID:Pravinmprajapati,項目名稱:ews-managed-api,代碼行數:12,代碼來源:SetUserOofSettingsRequest.cs

示例9: WriteElementsToXml

        /// <summary>
        /// Writes XML elements.
        /// </summary>
        /// <param name="writer">The writer.</param>
        internal override void WriteElementsToXml(EwsServiceXmlWriter writer)
        {
            writer.WriteStartElement(XmlNamespace.Messages, XmlElementNames.Manifest);

            writer.WriteBase64ElementValue(manifestStream);
            
            writer.WriteEndElement();
        }
開發者ID:XavierDa,項目名稱:ews-managed-api,代碼行數:12,代碼來源:InstallAppRequest.cs

示例10: WriteElementsToXml

        /// <summary>
        /// Writes elements to XML.
        /// </summary>
        /// <param name="writer">The writer.</param>
        internal override void WriteElementsToXml(EwsServiceXmlWriter writer)
        {
            base.WriteElementsToXml(writer);

            writer.WriteElementValue(
                XmlNamespace.Types,
                XmlElementNames.DateTime,
                this.dateTime);
        }
開發者ID:Pravinmprajapati,項目名稱:ews-managed-api,代碼行數:13,代碼來源:AbsoluteDateTransition.cs

示例11: WriteElementsToXml

 /// <summary>
 /// Writes the elements to XML.
 /// </summary>
 /// <param name="writer">The writer.</param>
 internal override void WriteElementsToXml(EwsServiceXmlWriter writer)
 {
     foreach (byte[] item in this.content)
     {
         writer.WriteStartElement(XmlNamespace.Types, ByteArrayArray.ItemXmlElementName);
         writer.WriteBase64ElementValue(item);
         writer.WriteEndElement();
     }
 }
開發者ID:liliankasem,項目名稱:ProjectSpikeAPI,代碼行數:13,代碼來源:ByteArrayArray.cs

示例12: InternalWriteViewToXml

        /// <summary>
        /// Writes this view to XML.
        /// </summary>
        /// <param name="writer">The writer.</param>
        internal virtual void InternalWriteViewToXml(EwsServiceXmlWriter writer)
        {
            int? maxEntriesReturned = this.GetMaxEntriesReturned();

            if (maxEntriesReturned.HasValue)
            {
                writer.WriteAttributeValue(XmlAttributeNames.MaxEntriesReturned, maxEntriesReturned.Value);
            }
        }
開發者ID:liliankasem,項目名稱:ProjectSpikeAPI,代碼行數:13,代碼來源:ViewBase.cs

示例13: WriteAttributesToXml

        /// <summary>
        /// Writes attributes to XML.
        /// </summary>
        /// <param name="writer">The writer.</param>
        internal override void WriteAttributesToXml(EwsServiceXmlWriter writer)
        {
            writer.WriteAttributeValue(XmlAttributeNames.SetClientExtensionActionId, this.setClientExtensionActionId);

            if (!string.IsNullOrEmpty(this.extensionId))
            {
                writer.WriteAttributeValue(XmlAttributeNames.ClientExtensionId, this.extensionId);
            }
        }
開發者ID:Pravinmprajapati,項目名稱:ews-managed-api,代碼行數:13,代碼來源:SetClientExtensionAction.cs

示例14: InternalWritePropertiesToXml

            /// <summary>
            /// Write properties to XML.
            /// </summary>
            /// <param name="writer">The writer.</param>
            internal override void InternalWritePropertiesToXml(EwsServiceXmlWriter writer)
            {
                base.InternalWritePropertiesToXml(writer);

                writer.WriteElementValue(
                    XmlNamespace.Types,
                    XmlElementNames.Interval,
                    this.Interval);
            }
開發者ID:liliankasem,項目名稱:ProjectSpikeAPI,代碼行數:13,代碼來源:Recurrence.IntervalPattern.cs

示例15: WriteElementsToXml

        /// <summary>
        /// Writes XML elements for GetPeopleInsights request
        /// </summary>
        /// <param name="writer">The writer.</param>
        internal override void WriteElementsToXml(EwsServiceXmlWriter writer)
        {
            writer.WriteStartElement(XmlNamespace.Messages, XmlElementNames.EmailAddresses);

            foreach (string emailAddress in this.Emailaddresses)
            {
                writer.WriteElementValue(XmlNamespace.Types, XmlElementNames.String, emailAddress);
            }

            writer.WriteEndElement();
        }
開發者ID:Pravinmprajapati,項目名稱:ews-managed-api,代碼行數:15,代碼來源:GetPeopleInsightsRequest.cs


注:本文中的Microsoft.Exchange.WebServices.Data.EwsServiceXmlWriter類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。