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