EmailAttachment Kelas
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Mewakili lampiran email.
public ref class EmailAttachment sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Email.IEmailAttachmentFactory2, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Email.IEmailAttachmentFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class EmailAttachment final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Email.IEmailAttachmentFactory2, 65536, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Email.IEmailAttachmentFactory, 65536, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class EmailAttachment final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Email.IEmailAttachmentFactory2), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Email.IEmailAttachmentFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class EmailAttachment
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Email.IEmailAttachmentFactory2), 65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Email.IEmailAttachmentFactory), 65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class EmailAttachment
function EmailAttachment(fileName, data, mimeType)
Public NotInheritable Class EmailAttachment
- Warisan
- Atribut
Persyaratan Windows
Rangkaian perangkat |
Windows 10 (diperkenalkan dalam 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v1.0)
|
Kemampuan aplikasi |
email
emailSystem
|
Keterangan
Lampiran yang Anda tambahkan ke email dengan menggunakan kelas EmailAttachment hanya akan muncul di aplikasi Email. Jika pengguna memiliki program email lain yang dikonfigurasi sebagai program surat default mereka, jendela tulis akan muncul tanpa lampiran. Ini adalah masalah yang sudah diketahui.
Konstruktor
EmailAttachment() |
Menginisialisasi instans baru kelas EmailAttachment . |
EmailAttachment(String, IRandomAccessStreamReference) |
Menginisialisasi instans baru kelas EmailAttachment dengan aliran akses acak yang ditentukan. |
EmailAttachment(String, IRandomAccessStreamReference, String) |
Menginisialisasi instans baru kelas EmailAttachment . |
Properti
ContentId |
Mendapatkan atau menetapkan nilai yang mengidentifikasi konten lampiran pada sistem jarak jauh. |
ContentLocation |
Mendapatkan atau mengatur lokasi lampiran email sebagai Pengidentifikasi Sumber Daya Seragam (URI). |
Data |
Mendapatkan atau mengatur data lampiran email. |
DownloadState |
Mendapatkan atau mengatur status unduhan lampiran email. |
EstimatedDownloadSizeInBytes |
Mendapatkan atau mengatur perkiraan ukuran unduhan lampiran. |
FileName |
Mendapatkan atau mengatur nama file yang ditampilkan untuk lampiran email. |
Id |
Mendapatkan ID unik lokal untuk lampiran email. |
IsFromBaseMessage |
Mendapatkan nilai Boolean yang menunjukkan apakah lampiran berasal dari pesan dasar. |
IsInline |
Mendapatkan atau mengatur properti Boolean yang menunjukkan apakah lampiran disertakan sebaris, dalam isi pesan. |
MimeType |
Mendapatkan atau mengatur jenis LAMPIRAN MIME. |