/
MailAttachment.xml
158 lines (153 loc) · 9.79 KB
/
MailAttachment.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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<Type Name="MailAttachment" FullName="System.Web.Mail.MailAttachment">
<TypeSignature Language="C#" Value="public class MailAttachment" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit MailAttachment extends System.Object" />
<TypeSignature Language="DocId" Value="T:System.Web.Mail.MailAttachment" />
<TypeSignature Language="VB.NET" Value="Public Class MailAttachment" />
<TypeSignature Language="F#" Value="type MailAttachment = class" />
<TypeSignature Language="C++ CLI" Value="public ref class MailAttachment" />
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute FrameworkAlternate="netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1">
<AttributeName Language="C#">[System.Obsolete("The recommended alternative is System.Net.Mail.Attachment. http://go.microsoft.com/fwlink/?linkid=14202")]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("The recommended alternative is System.Net.Mail.Attachment. http://go.microsoft.com/fwlink/?linkid=14202")>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Provides properties and methods for constructing an email attachment. Recommended alternative: <see cref="N:System.Net.Mail" />.</summary>
<remarks>To be added.</remarks>
</Docs>
<Members>
<MemberGroup MemberName=".ctor">
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Initializes a new instance of the <see cref="T:System.Web.Mail.MailAttachment" /> class. Recommended alternative: <see cref="N:System.Net.Mail" />.</summary>
</Docs>
</MemberGroup>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public MailAttachment (string filename);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string filename) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.Mail.MailAttachment.#ctor(System.String)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (filename As String)" />
<MemberSignature Language="F#" Value="new System.Web.Mail.MailAttachment : string -> System.Web.Mail.MailAttachment" Usage="new System.Web.Mail.MailAttachment filename" />
<MemberSignature Language="C++ CLI" Value="public:
 MailAttachment(System::String ^ filename);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="filename" Type="System.String" />
</Parameters>
<Docs>
<param name="filename">The name of the attachment file.</param>
<summary>Initializes a new instance of the <see cref="T:System.Web.Mail.MailAttachment" /> class with the specified file name for the attachment. Sets the <see cref="T:System.Text.Encoding" /> property to <see cref="F:System.Web.Mail.MailEncoding.UUEncode" /> by default. Recommended alternative: <see cref="N:System.Net.Mail" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The mail attachment file is locked while the mail is being sent.
## Examples
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/SystemWebMailMailAttachment/CS/systemwebmailmailattachment.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/SystemWebMailMailAttachment/VB/systemwebmailmailattachment.vb" id="Snippet1":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public MailAttachment (string filename, System.Web.Mail.MailEncoding encoding);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string filename, valuetype System.Web.Mail.MailEncoding encoding) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.Mail.MailAttachment.#ctor(System.String,System.Web.Mail.MailEncoding)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (filename As String, encoding As MailEncoding)" />
<MemberSignature Language="F#" Value="new System.Web.Mail.MailAttachment : string * System.Web.Mail.MailEncoding -> System.Web.Mail.MailAttachment" Usage="new System.Web.Mail.MailAttachment (filename, encoding)" />
<MemberSignature Language="C++ CLI" Value="public:
 MailAttachment(System::String ^ filename, System::Web::Mail::MailEncoding encoding);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="filename" Type="System.String" />
<Parameter Name="encoding" Type="System.Web.Mail.MailEncoding" />
</Parameters>
<Docs>
<param name="filename">The name of the attachment file.</param>
<param name="encoding">The type of <see cref="T:System.Web.Mail.MailEncoding" /> for the attachment.</param>
<summary>Initializes a new instance of the <see cref="T:System.Web.Mail.MailAttachment" /> class with the specified file name and encoding type for the attachment. Recommended alternative: <see cref="N:System.Net.Mail" />.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Encoding">
<MemberSignature Language="C#" Value="public System.Web.Mail.MailEncoding Encoding { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Web.Mail.MailEncoding Encoding" />
<MemberSignature Language="DocId" Value="P:System.Web.Mail.MailAttachment.Encoding" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Encoding As MailEncoding" />
<MemberSignature Language="F#" Value="member this.Encoding : System.Web.Mail.MailEncoding" Usage="System.Web.Mail.MailAttachment.Encoding" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Web::Mail::MailEncoding Encoding { System::Web::Mail::MailEncoding get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Web.Mail.MailEncoding</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the type of encoding for the email attachment. Recommended alternative: <see cref="N:System.Net.Mail" />.</summary>
<value>One of the <see cref="T:System.Web.Mail.MailEncoding" /> values.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Filename">
<MemberSignature Language="C#" Value="public string Filename { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance string Filename" />
<MemberSignature Language="DocId" Value="P:System.Web.Mail.MailAttachment.Filename" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Filename As String" />
<MemberSignature Language="F#" Value="member this.Filename : string" Usage="System.Web.Mail.MailAttachment.Filename" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::String ^ Filename { System::String ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the name of the attachment file. Recommended alternative: <see cref="N:System.Net.Mail" />.</summary>
<value>The name of the attachment file.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>