public class Attachment extends AttachmentBase
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Net.Mail.Attachment
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=9.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.Attachment
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Attachment() |
Attachment(java.lang.Object instance)
Internal constructor.
|
Attachment(Stream contentStream,
ContentType contentType) |
Attachment(Stream contentStream,
java.lang.String name) |
Attachment(Stream contentStream,
java.lang.String name,
java.lang.String mediaType) |
Attachment(java.lang.String fileName) |
Attachment(java.lang.String fileName,
ContentType contentType) |
Attachment(java.lang.String fileName,
java.lang.String mediaType) |
| Modifier and Type | Method and Description |
|---|---|
static Attachment |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Attachment, a cast assert is made to check if types are compatible. |
static Attachment |
CreateAttachmentFromString(java.lang.String content,
ContentType contentType) |
static Attachment |
CreateAttachmentFromString(java.lang.String content,
java.lang.String name) |
static Attachment |
CreateAttachmentFromString(java.lang.String content,
java.lang.String name,
Encoding contentEncoding,
java.lang.String mediaType) |
ContentDisposition |
getContentDisposition() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
java.lang.String |
getName() |
Encoding |
getNameEncoding() |
void |
setJCOInstance(JCObject instance) |
void |
setName(java.lang.String Name) |
void |
setNameEncoding(Encoding NameEncoding) |
close, Dispose, getContentId, getContentStream, getContentType, getTransferEncoding, setContentId, setContentType, setTransferEncodingpublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public Attachment()
throws java.lang.Throwable
java.lang.Throwablepublic Attachment(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic Attachment(Stream contentStream, ContentType contentType) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, FormatException, ArgumentOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, OutOfMemoryException
public Attachment(Stream contentStream, java.lang.String name) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, UnreachableException, IndexOutOfRangeException, FormatException, InvalidOperationException, OutOfMemoryException
public Attachment(Stream contentStream, java.lang.String name, java.lang.String mediaType) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, UnreachableException, IndexOutOfRangeException, FormatException, InvalidOperationException, OutOfMemoryException
public Attachment(java.lang.String fileName)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
SerializationException,
PlatformNotSupportedException,
UnreachableException,
IndexOutOfRangeException,
FormatException,
InvalidOperationException,
NotSupportedException,
OutOfMemoryException,
RankException,
ArrayTypeMismatchException,
InvalidCastException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionSerializationExceptionPlatformNotSupportedExceptionUnreachableExceptionIndexOutOfRangeExceptionFormatExceptionInvalidOperationExceptionNotSupportedExceptionOutOfMemoryExceptionRankExceptionArrayTypeMismatchExceptionInvalidCastExceptionpublic Attachment(java.lang.String fileName,
ContentType contentType)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
SerializationException,
FormatException,
NotSupportedException,
PlatformNotSupportedException,
IndexOutOfRangeException,
CultureNotFoundException,
InvalidOperationException,
OutOfMemoryException,
RankException,
ArrayTypeMismatchException,
InvalidCastException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionSerializationExceptionFormatExceptionNotSupportedExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionOutOfMemoryExceptionRankExceptionArrayTypeMismatchExceptionInvalidCastExceptionpublic Attachment(java.lang.String fileName,
java.lang.String mediaType)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
SerializationException,
PlatformNotSupportedException,
UnreachableException,
IndexOutOfRangeException,
FormatException,
InvalidOperationException,
NotSupportedException,
OutOfMemoryException,
RankException,
ArrayTypeMismatchException,
InvalidCastException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionSerializationExceptionPlatformNotSupportedExceptionUnreachableExceptionIndexOutOfRangeExceptionFormatExceptionInvalidOperationExceptionNotSupportedExceptionOutOfMemoryExceptionRankExceptionArrayTypeMismatchExceptionInvalidCastExceptionpublic static Attachment cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Attachment, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedAttachment instancejava.lang.Throwable - in case of error during cast operationpublic static Attachment CreateAttachmentFromString(java.lang.String content, ContentType contentType) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, UnreachableException, IndexOutOfRangeException, FormatException, InvalidOperationException, NotSupportedException, RankException, ArrayTypeMismatchException, OutOfMemoryException
public static Attachment CreateAttachmentFromString(java.lang.String content, java.lang.String name) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, UnreachableException, IndexOutOfRangeException, FormatException, InvalidOperationException, NotSupportedException, RankException, ArrayTypeMismatchException, NullReferenceException, OutOfMemoryException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionUnreachableExceptionIndexOutOfRangeExceptionFormatExceptionInvalidOperationExceptionNotSupportedExceptionRankExceptionArrayTypeMismatchExceptionNullReferenceExceptionOutOfMemoryExceptionpublic static Attachment CreateAttachmentFromString(java.lang.String content, java.lang.String name, Encoding contentEncoding, java.lang.String mediaType) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, UnreachableException, IndexOutOfRangeException, FormatException, InvalidOperationException, NotSupportedException, RankException, ArrayTypeMismatchException, NullReferenceException, OutOfMemoryException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionUnreachableExceptionIndexOutOfRangeExceptionFormatExceptionInvalidOperationExceptionNotSupportedExceptionRankExceptionArrayTypeMismatchExceptionNullReferenceExceptionOutOfMemoryExceptionpublic ContentDisposition getContentDisposition() throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class AttachmentBaseString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class AttachmentBaseString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class AttachmentBaseObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class AttachmentBaseString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class AttachmentBaseJCType representing the CLR Type of the instantiated Classpublic java.lang.String getName()
throws java.lang.Throwable
java.lang.Throwablepublic Encoding getNameEncoding() throws java.lang.Throwable
java.lang.Throwablepublic void setJCOInstance(JCObject instance)
setJCOInstance in class AttachmentBasepublic void setName(java.lang.String Name)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
NullReferenceException,
OutOfMemoryException,
UnreachableException,
FormatException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionNullReferenceExceptionOutOfMemoryExceptionUnreachableExceptionFormatExceptionpublic void setNameEncoding(Encoding NameEncoding) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, UnreachableException, ArgumentNullException, OutOfMemoryException