Represents a file. Provides information about the file and its content, and ways to manipulate them.
PlatformVersion supported AndroidAndroid 4.4 and later iOSiOS 9.0 and later tvOStvOS 9.0 and later TizenTizen 3.0 Windows UWPWindows 10 Windows StoreWindows 8.1 or later Windows Phone StoreWindows Phone 8.1 or later Windows Phone SilverlightWindows Phone 8.0 or later Windows (Desktop Apps)Windows Vista or later
Наследование: IStorageFile, IStorageItem, IStorageItem2
Пример #1
0
 /// <summary>
 /// Initializes a new instance of the see cref="EmailAttachment"/> class.
 /// </summary>
 /// <param name="filename">The filename of the attachment.</param>
 /// <param name="data">The stream to use to download the attachment.</param>
 /// <param name="mimeType">The MIME type of the attachment.</param>
 public EmailAttachment(string filename, StorageFile data, string mimeType) : this(filename, data)
 {
     MimeType = mimeType;
 }
Пример #2
0
 /// <summary>
 /// Creates an instance of the <see cref="EmailAttachment"/> class with the specified data.
 /// </summary>
 /// <param name="filename">The filename of the attachment.</param>
 /// <param name="data">The stream to use to download the attachment.</param>
 public EmailAttachment(string filename, StorageFile data)
 {
     FileName = filename;
     Data = data;
     MimeType = data.ContentType;
 }