-
Notifications
You must be signed in to change notification settings - Fork 12
/
DeleteAttachmentType.xml
118 lines (113 loc) · 6.14 KB
/
DeleteAttachmentType.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<Type Name="DeleteAttachmentType" FullName="ExchangeWebServices.DeleteAttachmentType">
<TypeSignature Language="C#" Value="public class DeleteAttachmentType : ExchangeWebServices.BaseRequestType" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi serializable beforefieldinit DeleteAttachmentType extends ExchangeWebServices.BaseRequestType" />
<TypeSignature Language="DocId" Value="T:ExchangeWebServices.DeleteAttachmentType" />
<TypeSignature Language="VB.NET" Value="Public Class DeleteAttachmentType
Inherits BaseRequestType" />
<TypeSignature Language="C++ CLI" Value="public ref class DeleteAttachmentType : ExchangeWebServices::BaseRequestType" />
<AssemblyInfo>
<AssemblyName>EWS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>ExchangeWebServices.BaseRequestType</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute>
<AttributeName>System.CodeDom.Compiler.GeneratedCode("wsdl", "2.0.50727.3038")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.DesignerCategory("code")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.Diagnostics.DebuggerStepThrough</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.Xml.Serialization.XmlType(Namespace="http://schemas.microsoft.com/exchange/services/2006/messages")</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>The <see cref="T:ExchangeWebServices.DeleteAttachmentType" /> class represents a request to delete an attachment on an item in the Exchange database.</summary>
<remarks>
<para>The DeleteAttachment operation returns the identifier and new change key of the item that held the attachment before it was deleted.</para>
<para />
</remarks>
<example>
<para>The following code example shows a DeleteItem request that deletes two attachments.</para>
<code>static void DeleteAttachment(ExchangeServiceBinding esb)
{
// Create the request.
<span class="label">DeleteAttachmentType</span><span class="label">request</span> = new DeleteAttachmentType();
// Identify the attachments to delete.
RequestAttachmentIdType[] attachments = new RequestAttachmentIdType[2];
attachments[0] = new RequestAttachmentIdType();
attachments[1] = new RequestAttachmentIdType();
attachments[0].Id = "AAAlAE1B";
attachments[1].Id = "AAAlAE1B";
<span class="label">request</span>.AttachmentIds = attachments;
try
{
DeleteAttachmentResponseType response = esb.DeleteAttachment(<span class="label">request</span>);
ArrayOfResponseMessagesType aormt = response.ResponseMessages;
ResponseMessageType[] rmta = aormt.Items;
foreach (ResponseMessageType rmt in rmta)
{
DeleteAttachmentResponseMessageType darmt = (rmt as DeleteAttachmentResponseMessageType);
if (darmt.ResponseClass == ResponseClassType.Success)
{
Console.WriteLine("Attachment deleted from ItemId: " + darmt.RootItemId.RootItemId);
}
}
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
}</code>
</example>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public DeleteAttachmentType ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:ExchangeWebServices.DeleteAttachmentType.#ctor" />
<MemberSignature Language="VB.NET" Value="Public Sub New ()" />
<MemberSignature Language="C++ CLI" Value="public:
 DeleteAttachmentType();" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>EWS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters />
<Docs>
<summary>The <see cref="T:ExchangeWebServices.DeleteAttachmentType" /> constructor initializes a new instance of the <see cref="T:ExchangeWebServices.DeleteAttachmentType" /> class.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="AttachmentIds">
<MemberSignature Language="C#" Value="public ExchangeWebServices.RequestAttachmentIdType[] AttachmentIds { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class ExchangeWebServices.RequestAttachmentIdType[] AttachmentIds" />
<MemberSignature Language="DocId" Value="P:ExchangeWebServices.DeleteAttachmentType.AttachmentIds" />
<MemberSignature Language="VB.NET" Value="Public Property AttachmentIds As RequestAttachmentIdType()" />
<MemberSignature Language="C++ CLI" Value="public:
 property cli::array <ExchangeWebServices::RequestAttachmentIdType ^> ^ AttachmentIds { cli::array <ExchangeWebServices::RequestAttachmentIdType ^> ^ get(); void set(cli::array <ExchangeWebServices::RequestAttachmentIdType ^> ^ value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>EWS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.Xml.Serialization.XmlArrayItem("AttachmentId", IsNullable=false, Namespace="http://schemas.microsoft.com/exchange/services/2006/types")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>ExchangeWebServices.RequestAttachmentIdType[]</ReturnType>
</ReturnValue>
<Docs>
<summary>The <see cref="P:ExchangeWebServices.DeleteAttachmentType.AttachmentIds" /> property gets or sets the set of attachment identifiers that are used to identify the attachments to delete.</summary>
<value>The <see cref="P:ExchangeWebServices.DeleteAttachmentType.AttachmentIds" /> property returns a <see cref="T:ExchangeWebServices.RequestAttachmentIdType" /> array that identifies the set attachments to delete.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>