本文整理汇总了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);
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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
}
示例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);
}
示例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
}
}
示例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);
}
示例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);
}
示例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
}