public class MailMessage extends NetObject implements java.lang.AutoCloseable
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Net.Mail.MailMessage
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Net.Mail, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
|
static java.lang.String |
assemblyShortName
Assembly name: System.Net.Mail
|
static java.lang.String |
className
Qualified class name: System.Net.Mail.MailMessage
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
MailMessage() |
MailMessage(MailAddress from,
MailAddress to) |
MailMessage(java.lang.Object instance)
Internal constructor.
|
MailMessage(java.lang.String from,
java.lang.String to) |
MailMessage(java.lang.String from,
java.lang.String to,
java.lang.String subject,
java.lang.String body) |
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public MailMessage()
throws java.lang.Throwable,
PlatformNotSupportedException,
NotSupportedException,
ArgumentException,
IndexOutOfRangeException,
OutOfMemoryException,
ArgumentNullException,
InvalidOperationException,
EventSourceException,
ArgumentOutOfRangeException
public MailMessage(MailAddress from, MailAddress to) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public MailMessage(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic MailMessage(java.lang.String from,
java.lang.String to)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentNullException,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
OutOfMemoryException,
FormatException,
EventSourceException
public MailMessage(java.lang.String from,
java.lang.String to,
java.lang.String subject,
java.lang.String body)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
NotSupportedException,
ArgumentOutOfRangeException,
OutOfMemoryException,
FormatException,
PlatformNotSupportedException,
EventSourceException,
ArrayTypeMismatchException
public static MailMessage cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into MailMessage, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedMailMessage instancejava.lang.Throwable - in case of error during cast operationpublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionpublic void Dispose()
throws java.lang.Throwable,
ArgumentNullException,
NotSupportedException,
ArgumentException
java.lang.ThrowableArgumentNullExceptionNotSupportedExceptionArgumentExceptionpublic AlternateViewCollection getAlternateViews() throws java.lang.Throwable, PlatformNotSupportedException, ObjectDisposedException
java.lang.ThrowablePlatformNotSupportedExceptionObjectDisposedExceptionpublic AttachmentCollection getAttachments() throws java.lang.Throwable, PlatformNotSupportedException, ObjectDisposedException
java.lang.ThrowablePlatformNotSupportedExceptionObjectDisposedExceptionpublic MailAddressCollection getBcc() throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getBody()
throws java.lang.Throwable
java.lang.Throwablepublic Encoding getBodyEncoding() throws java.lang.Throwable
java.lang.Throwablepublic TransferEncoding getBodyTransferEncoding() throws java.lang.Throwable
java.lang.Throwablepublic MailAddressCollection getCC() throws java.lang.Throwable
java.lang.Throwablepublic DeliveryNotificationOptions getDeliveryNotificationOptions() throws java.lang.Throwable
java.lang.Throwablepublic MailAddress getFrom() throws java.lang.Throwable
java.lang.Throwablepublic NameValueCollection getHeaders() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, PlatformNotSupportedException, OutOfMemoryException, EventSourceException, NotSupportedException
public Encoding getHeadersEncoding() throws java.lang.Throwable
java.lang.Throwablepublic boolean getIsBodyHtml()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectJCType representing the CLR Type of the instantiated Classpublic MailPriority getPriority() throws java.lang.Throwable
java.lang.Throwablepublic MailAddress getReplyTo() throws java.lang.Throwable
java.lang.Throwablepublic MailAddressCollection getReplyToList() throws java.lang.Throwable
java.lang.Throwablepublic MailAddress getSender() throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getSubject()
throws java.lang.Throwable
java.lang.Throwablepublic Encoding getSubjectEncoding() throws java.lang.Throwable
java.lang.Throwablepublic MailAddressCollection getTo() throws java.lang.Throwable
java.lang.Throwablepublic void setBody(java.lang.String Body)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
PlatformNotSupportedException,
IndexOutOfRangeException,
CultureNotFoundException,
FormatException
public void setBodyEncoding(Encoding BodyEncoding) throws java.lang.Throwable
java.lang.Throwablepublic void setBodyTransferEncoding(TransferEncoding BodyTransferEncoding) throws java.lang.Throwable
java.lang.Throwablepublic void setDeliveryNotificationOptions(DeliveryNotificationOptions DeliveryNotificationOptions) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, ArrayTypeMismatchException, CultureNotFoundException, ObjectDisposedException
public void setFrom(MailAddress From) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public void setHeadersEncoding(Encoding HeadersEncoding) throws java.lang.Throwable
java.lang.Throwablepublic void setIsBodyHtml(boolean IsBodyHtml)
throws java.lang.Throwable
java.lang.Throwablepublic void setJCOInstance(JCObject instance)
setJCOInstance in class NetObjectpublic void setPriority(MailPriority Priority) throws java.lang.Throwable
java.lang.Throwablepublic void setReplyTo(MailAddress ReplyTo) throws java.lang.Throwable
java.lang.Throwablepublic void setSender(MailAddress Sender) throws java.lang.Throwable
java.lang.Throwablepublic void setSubject(java.lang.String Subject)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentNullException,
OutOfMemoryException,
ArrayTypeMismatchException,
OverflowException
public void setSubjectEncoding(Encoding SubjectEncoding) throws java.lang.Throwable
java.lang.Throwable