public class Attachment extends AttachmentBase
.NET documentation at https://learn.microsoft.com/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=8.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)
Initializes a new instance by invoking the .NET constructor.
|
Attachment(Stream contentStream,
java.lang.String name)
Initializes a new instance by invoking the .NET constructor.
|
Attachment(Stream contentStream,
java.lang.String name,
java.lang.String mediaType)
Initializes a new instance by invoking the .NET constructor.
|
Attachment(java.lang.String fileName)
Initializes a new instance by invoking the .NET constructor.
|
Attachment(java.lang.String fileName,
ContentType contentType)
Initializes a new instance by invoking the .NET constructor.
|
Attachment(java.lang.String fileName,
java.lang.String mediaType)
Initializes a new instance by invoking the .NET constructor.
|
| 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)
Invokes the .NET member CreateAttachmentFromString.
|
static Attachment |
CreateAttachmentFromString(java.lang.String content,
java.lang.String name)
Invokes the .NET member CreateAttachmentFromString.
|
static Attachment |
CreateAttachmentFromString(java.lang.String content,
java.lang.String name,
Encoding contentEncoding,
java.lang.String mediaType)
Invokes the .NET member CreateAttachmentFromString.
|
ContentDisposition |
getContentDisposition()
Gets the value of the .NET property ContentDisposition.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
java.lang.String |
getName()
Gets the value of the .NET property Name.
|
Encoding |
getNameEncoding()
Gets the value of the .NET property NameEncoding.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setName(java.lang.String Name)
Sets the value of the .NET property Name.
|
void |
setNameEncoding(Encoding NameEncoding)
Sets the value of the .NET property 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
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic Attachment(Stream contentStream, ContentType contentType) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, FormatException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, OutOfMemoryException
contentStream - the argument of type StreamcontentType - the argument of type ContentTypejava.lang.Throwable - if the .NET constructor failsNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itFormatException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic Attachment(Stream contentStream, java.lang.String name) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, UnreachableException, IndexOutOfRangeException, FormatException, InvalidOperationException, OutOfMemoryException
contentStream - the argument of type Streamname - the argument of type java.lang.Stringjava.lang.Throwable - if the .NET constructor failsNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itUnreachableException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itInvalidOperationException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic 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
contentStream - the argument of type Streamname - the argument of type java.lang.StringmediaType - the argument of type java.lang.Stringjava.lang.Throwable - if the .NET constructor failsNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itUnreachableException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itInvalidOperationException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic Attachment(java.lang.String fileName)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
SerializationException,
PlatformNotSupportedException,
UnreachableException,
IndexOutOfRangeException,
FormatException,
InvalidOperationException,
NotSupportedException,
OutOfMemoryException,
RankException,
ArrayTypeMismatchException
fileName - the argument of type java.lang.Stringjava.lang.Throwable - if the .NET constructor failsArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itSerializationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itUnreachableException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itInvalidOperationException - if the .NET member raises itNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic Attachment(java.lang.String fileName,
ContentType contentType)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
SerializationException,
FormatException,
NotSupportedException,
PlatformNotSupportedException,
IndexOutOfRangeException,
InvalidOperationException,
CultureNotFoundException,
OutOfMemoryException,
RankException,
ArrayTypeMismatchException
fileName - the argument of type java.lang.StringcontentType - the argument of type ContentTypejava.lang.Throwable - if the .NET constructor failsArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itSerializationException - if the .NET member raises itFormatException - if the .NET member raises itNotSupportedException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic 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
fileName - the argument of type java.lang.StringmediaType - the argument of type java.lang.Stringjava.lang.Throwable - if the .NET constructor failsArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itSerializationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itUnreachableException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itInvalidOperationException - if the .NET member raises itNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic 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, IndexOutOfRangeException, FormatException, InvalidOperationException, NotSupportedException, RankException, ArrayTypeMismatchException, OutOfMemoryException
content - the argument of type java.lang.StringcontentType - the argument of type ContentTypejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itInvalidOperationException - if the .NET member raises itNotSupportedException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic static Attachment CreateAttachmentFromString(java.lang.String content, java.lang.String name) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, InvalidOperationException, NotSupportedException, RankException, ArrayTypeMismatchException, OutOfMemoryException
content - the argument of type java.lang.Stringname - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itInvalidOperationException - if the .NET member raises itNotSupportedException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic 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, IndexOutOfRangeException, FormatException, InvalidOperationException, NotSupportedException, RankException, ArrayTypeMismatchException, OutOfMemoryException
content - the argument of type java.lang.Stringname - the argument of type java.lang.StringcontentEncoding - the argument of type EncodingmediaType - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itInvalidOperationException - if the .NET member raises itNotSupportedException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic ContentDisposition getContentDisposition() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class AttachmentBasepublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class AttachmentBasepublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class AttachmentBasenull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class AttachmentBasepublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class AttachmentBasepublic java.lang.String getName()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Encoding getNameEncoding() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class AttachmentBaseinstance - the new underlying objectpublic void setName(java.lang.String Name)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentNullException,
OutOfMemoryException,
UnreachableException,
FormatException
Name - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itUnreachableException - if the .NET member raises itFormatException - if the .NET member raises itpublic void setNameEncoding(Encoding NameEncoding) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, UnreachableException, FormatException, ArgumentNullException, OutOfMemoryException
NameEncoding - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itUnreachableException - if the .NET member raises itFormatException - if the .NET member raises itArgumentNullException - if the .NET member raises itOutOfMemoryException - if the .NET member raises it