本文整理汇总了C#中Microsoft.Exchange.WebServices.Data.EwsServiceXmlWriter.WriteBase64ElementValue方法的典型用法代码示例。如果您正苦于以下问题:C# EwsServiceXmlWriter.WriteBase64ElementValue方法的具体用法?C# EwsServiceXmlWriter.WriteBase64ElementValue怎么用?C# EwsServiceXmlWriter.WriteBase64ElementValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Microsoft.Exchange.WebServices.Data.EwsServiceXmlWriter
的用法示例。
在下文中一共展示了EwsServiceXmlWriter.WriteBase64ElementValue方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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);
}
}
示例2: 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();
}
示例3: 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();
}
}
示例4: 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();
if (!string.IsNullOrEmpty(this.marketplaceAssetId))
{
writer.WriteElementValue(XmlNamespace.Messages, XmlElementNames.MarketplaceAssetId, this.marketplaceAssetId);
if (!string.IsNullOrEmpty(this.marketplaceContentMarket))
{
writer.WriteElementValue(XmlNamespace.Messages, XmlElementNames.MarketplaceContentMarket, this.marketplaceContentMarket);
}
writer.WriteElementValue(XmlNamespace.Messages, XmlElementNames.SendWelcomeEmail, this.sendWelcomeEmail);
}
writer.WriteEndElement();
}
示例5: WriteElementsToXml
/// <summary>
/// Writes elements and content to XML.
/// </summary>
/// <param name="writer">The writer.</param>
internal override void WriteElementsToXml(EwsServiceXmlWriter writer)
{
base.WriteElementsToXml(writer);
if (writer.Service.RequestedServerVersion > ExchangeVersion.Exchange2007_SP1)
{
writer.WriteElementValue(XmlNamespace.Types, XmlElementNames.IsContactPhoto, this.isContactPhoto);
}
writer.WriteStartElement(XmlNamespace.Types, XmlElementNames.Content);
if (!string.IsNullOrEmpty(this.FileName))
{
using (FileStream fileStream = new FileStream(this.FileName, FileMode.Open, FileAccess.Read))
{
writer.WriteBase64ElementValue(fileStream);
}
}
else if (this.ContentStream != null)
{
writer.WriteBase64ElementValue(this.ContentStream);
}
else if (this.Content != null)
{
writer.WriteBase64ElementValue(this.Content);
}
else
{
EwsUtilities.Assert(
false,
"FileAttachment.WriteElementsToXml",
"The attachment's content is not set.");
}
writer.WriteEndElement();
}
示例6: WriteElementsToXml
/// <summary>
/// Writes elements to XML.
/// </summary>
/// <param name="writer">The writer.</param>
internal override void WriteElementsToXml(EwsServiceXmlWriter writer)
{
if (null != this.SpecificUsers)
{
writer.WriteStartElement(XmlNamespace.Types, XmlElementNames.ClientExtensionSpecificUsers);
this.SpecificUsers.WriteElementsToXml(writer);
writer.WriteEndElement();
}
if (null != this.ManifestStream)
{
if (this.ManifestStream.CanSeek)
{
this.ManifestStream.Position = 0;
}
writer.WriteStartElement(XmlNamespace.Types, XmlElementNames.Manifest);
writer.WriteBase64ElementValue(this.ManifestStream);
writer.WriteEndElement();
}
}