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


C# EwsServiceXmlWriter.WriteAttributeValue方法代码示例

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


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

示例1: 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

示例2: 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

示例3: WriteAttributesToXml

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

            if (this.ViewFilter.HasValue)
            {
                writer.WriteAttributeValue(XmlAttributeNames.ViewFilter, this.ViewFilter);
            }
        }
开发者ID:liliankasem,项目名称:ProjectSpikeAPI,代码行数:16,代码来源:ConversationIndexedItemView.cs

示例4: 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

示例5: 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

示例6: WriteAttributesToXml

 /// <summary>
 /// Writes attributes to XML.
 /// </summary>
 /// <param name="writer">The writer.</param>
 internal override void WriteAttributesToXml(EwsServiceXmlWriter writer)
 {
     writer.WriteAttributeValue(XmlAttributeNames.CharacterSet, this.CharacterSet);
 }
开发者ID:Pravinmprajapati,项目名称:ews-managed-api,代码行数:8,代码来源:MimeContentBase.cs

示例7: WriteAttributesToXml

        /// <summary>
        /// Writes the attributes to XML.
        /// </summary>
        /// <param name="writer">The writer.</param>
        internal override void WriteAttributesToXml(EwsServiceXmlWriter writer)
        {
            // The Name attribute is only supported in Exchange 2010 and above.
            if (writer.Service.RequestedServerVersion != ExchangeVersion.Exchange2007_SP1)
            {
                writer.WriteAttributeValue(XmlAttributeNames.Name, this.name);
            }

            writer.WriteAttributeValue(XmlAttributeNames.Id, this.id);
        }
开发者ID:Pravinmprajapati,项目名称:ews-managed-api,代码行数:14,代码来源:TimeZoneDefinition.cs

示例8: WriteAttributesToXml

 /// <summary>
 /// Writes the attributes to XML.
 /// </summary>
 /// <param name="writer">The writer.</param>
 internal override void WriteAttributesToXml(EwsServiceXmlWriter writer)
 {
     writer.WriteAttributeValue(XmlAttributeNames.FieldURI, this.Uri);
 }
开发者ID:Pravinmprajapati,项目名称:ews-managed-api,代码行数:8,代码来源:ServiceObjectPropertyDefinition.cs

示例9: WriteAttributesToXml

 /// <summary>
 /// Writes the attributes to XML.
 /// </summary>
 /// <param name="writer">The writer.</param>
 internal override void WriteAttributesToXml(EwsServiceXmlWriter writer)
 {
     writer.WriteAttributeValue(XmlAttributeNames.Traversal, this.Traversal);
 }
开发者ID:liliankasem,项目名称:ProjectSpikeAPI,代码行数:8,代码来源:FolderView.cs

示例10: WriteToXml

        /// <summary>
        /// Writes to XML.
        /// </summary>
        /// <param name="writer">The writer.</param>
        /// <param name="xmlElementName">Name of the XML element.</param>
        internal void WriteToXml(EwsServiceXmlWriter writer, string xmlElementName)
        {
            writer.WriteStartElement(XmlNamespace.Types, xmlElementName);

            if (this.Culture != null)
            {
                writer.WriteAttributeValue(
                    "xml",
                    "lang",
                    this.Culture);
            }

            writer.WriteElementValue(
                XmlNamespace.Types,
                XmlElementNames.Message,
                this.Message);

            writer.WriteEndElement(); // xmlElementName
        }
开发者ID:liliankasem,项目名称:ProjectSpikeAPI,代码行数:24,代码来源:OofReply.cs

示例11: WriteAttributesToXml

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

            writer.WriteAttributeValue(XmlAttributeNames.FieldIndex, this.Index);
        }
开发者ID:Pravinmprajapati,项目名称:ews-managed-api,代码行数:10,代码来源:IndexedPropertyDefinition.cs

示例12: InternalWriteViewToXml

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

            writer.WriteAttributeValue(XmlAttributeNames.BasePoint, this.OffsetBasePoint);

            if (this.Condition != null)
            {
                writer.WriteStartElement(XmlNamespace.Types, XmlElementNames.Condition);
                this.Condition.WriteToXml(writer);
                writer.WriteEndElement(); // Restriction
            }
        }
开发者ID:Pravinmprajapati,项目名称:ews-managed-api,代码行数:17,代码来源:SeekToConditionItemView.cs

示例13: WriteAttributesToXml

 /// <summary>
 /// Writes the attributes to XML.
 /// </summary>
 /// <param name="writer">The writer.</param>
 internal override void WriteAttributesToXml(EwsServiceXmlWriter writer)
 {
     writer.WriteAttributeValue(XmlAttributeNames.Bias, EwsUtilities.TimeSpanToXSDuration(this.bias));
     writer.WriteAttributeValue(XmlAttributeNames.Name, this.name);
     writer.WriteAttributeValue(XmlAttributeNames.Id, this.id);
 }
开发者ID:Pravinmprajapati,项目名称:ews-managed-api,代码行数:10,代码来源:TimeZonePeriod.cs

示例14: WriteAttributesToXml

 /// <summary>
 /// Writes attributes to XML.
 /// </summary>
 /// <param name="writer">The writer.</param>
 internal override void WriteAttributesToXml(EwsServiceXmlWriter writer)
 {
     writer.WriteAttributeValue(XmlAttributeNames.ClientExtensionType, this.Type);
     writer.WriteAttributeValue(XmlAttributeNames.ClientExtensionScope, this.Scope);
     writer.WriteAttributeValue(XmlAttributeNames.ClientExtensionMarketplaceAssetID, this.MarketplaceAssetID);
     writer.WriteAttributeValue(XmlAttributeNames.ClientExtensionMarketplaceContentMarket, this.MarketplaceContentMarket);
     writer.WriteAttributeValue(XmlAttributeNames.ClientExtensionAppStatus, this.AppStatus);
     writer.WriteAttributeValue(XmlAttributeNames.ClientExtensionEtoken, this.Etoken);
     writer.WriteAttributeValue(XmlAttributeNames.ClientExtensionInstalledDateTime, this.InstalledDateTime);
     writer.WriteAttributeValue(XmlAttributeNames.ClientExtensionIsAvailable, this.IsAvailable);
     writer.WriteAttributeValue(XmlAttributeNames.ClientExtensionIsMandatory, this.IsMandatory);
     writer.WriteAttributeValue(XmlAttributeNames.ClientExtensionIsEnabledByDefault, this.IsEnabledByDefault);
     writer.WriteAttributeValue(XmlAttributeNames.ClientExtensionProvidedTo, this.ProvidedTo);
 }
开发者ID:liliankasem,项目名称:ProjectSpikeAPI,代码行数:18,代码来源:ClientExtension.cs

示例15: WriteElementsToXml

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

                writer.WriteStartElement(XmlNamespace.Types, XmlElementNames.FieldURIOrConstant);

                if (this.Value != null)
                {
                    writer.WriteStartElement(XmlNamespace.Types, XmlElementNames.Constant);
                    writer.WriteAttributeValue(XmlAttributeNames.Value, true /* alwaysWriteEmptyString */, this.Value);
                    writer.WriteEndElement(); // Constant
                }
                else
                {
                    this.OtherPropertyDefinition.WriteToXml(writer);
                }

                writer.WriteEndElement(); // FieldURIOrConstant
            }
开发者ID:liliankasem,项目名称:ProjectSpikeAPI,代码行数:23,代码来源:SearchFilter.RelationalFilter.cs


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