Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ SetContent() [3/3]

void System.Net.Mime.MimePart.SetContent ( Stream stream,
string name,
string mimeType )
inlinepackage

Definition at line 137 of file MimePart.cs.

138 {
139 if (stream == null)
140 {
141 throw new ArgumentNullException("stream");
142 }
143 if (mimeType != null && mimeType != string.Empty)
144 {
145 _contentType = new ContentType(mimeType);
146 }
147 if (name != null && name != string.Empty)
148 {
149 base.ContentType.Name = name;
150 }
152 }
void SetContent(Stream stream)
Definition MimePart.cs:119

References System.Net.Mime.MimeBasePart._contentType, System.Net.Mime.MimeBasePart.ContentType, System.Net.Mime.MimePart.SetContent(), and System.stream.