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, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: System
|
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,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
NotSupportedException,
ConfigurationException,
ConfigurationErrorsException,
OverflowException,
MulticastNotSupportedException,
ObjectDisposedException,
AbandonedMutexException,
InvalidOperationException,
NotImplementedException,
IndexOutOfRangeException,
OutOfMemoryException,
FormatException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionNotSupportedExceptionConfigurationExceptionConfigurationErrorsExceptionOverflowExceptionMulticastNotSupportedExceptionObjectDisposedExceptionAbandonedMutexExceptionInvalidOperationExceptionNotImplementedExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionFormatExceptionpublic MailMessage(MailAddress from, MailAddress to) throws java.lang.Throwable, ArgumentNullException, NotSupportedException
java.lang.ThrowableArgumentNullExceptionNotSupportedExceptionpublic 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,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException,
FormatException,
OutOfMemoryException,
ConfigurationException,
ConfigurationErrorsException,
OverflowException,
MulticastNotSupportedException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionOutOfMemoryExceptionConfigurationExceptionConfigurationErrorsExceptionOverflowExceptionMulticastNotSupportedExceptionpublic MailMessage(java.lang.String from,
java.lang.String to,
java.lang.String subject,
java.lang.String body)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException,
IndexOutOfRangeException,
NotSupportedException,
OutOfMemoryException,
FormatException,
ConfigurationException,
ConfigurationErrorsException,
InvalidCastException,
MulticastNotSupportedException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionNotSupportedExceptionOutOfMemoryExceptionFormatExceptionConfigurationExceptionConfigurationErrorsExceptionInvalidCastExceptionMulticastNotSupportedExceptionpublic 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
java.lang.ThrowableArgumentNullExceptionNotSupportedExceptionpublic AlternateViewCollection getAlternateViews() throws java.lang.Throwable, ObjectDisposedException
java.lang.ThrowableObjectDisposedExceptionpublic AttachmentCollection getAttachments() throws java.lang.Throwable, ObjectDisposedException
java.lang.ThrowableObjectDisposedExceptionpublic 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, ArgumentNullException, ConfigurationException, ConfigurationErrorsException, MissingManifestResourceException, InvalidCastException, MulticastNotSupportedException
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,
ArgumentNullException,
ArgumentOutOfRangeException,
ObjectDisposedException,
AbandonedMutexException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
FormatException,
NotSupportedException
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, ArgumentOutOfRangeException
java.lang.ThrowableArgumentOutOfRangeExceptionpublic void setFrom(MailAddress From) throws java.lang.Throwable, ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic 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,
ArgumentOutOfRangeException,
ArgumentNullException,
FormatException,
ArgumentException,
ObjectDisposedException,
AbandonedMutexException,
InvalidOperationException,
NotSupportedException,
IndexOutOfRangeException,
NotImplementedException,
CultureNotFoundException,
MissingManifestResourceException,
OutOfMemoryException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionFormatExceptionArgumentExceptionObjectDisposedExceptionAbandonedMutexExceptionInvalidOperationExceptionNotSupportedExceptionIndexOutOfRangeExceptionNotImplementedExceptionCultureNotFoundExceptionMissingManifestResourceExceptionOutOfMemoryExceptionpublic void setSubjectEncoding(Encoding SubjectEncoding) throws java.lang.Throwable
java.lang.Throwable