public class AlternateView extends AttachmentBase
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Net.Mail.AlternateView
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.AlternateView
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
AlternateView() |
AlternateView(java.lang.Object instance)
Internal constructor.
|
AlternateView(Stream contentStream)
Initializes a new instance by invoking the .NET constructor.
|
AlternateView(Stream contentStream,
ContentType contentType)
Initializes a new instance by invoking the .NET constructor.
|
AlternateView(Stream contentStream,
java.lang.String mediaType)
Initializes a new instance by invoking the .NET constructor.
|
AlternateView(java.lang.String fileName)
Initializes a new instance by invoking the .NET constructor.
|
AlternateView(java.lang.String fileName,
ContentType contentType)
Initializes a new instance by invoking the .NET constructor.
|
AlternateView(java.lang.String fileName,
java.lang.String mediaType)
Initializes a new instance by invoking the .NET constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static AlternateView |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into AlternateView, a cast assert is made to check if types are compatible. |
static AlternateView |
CreateAlternateViewFromString(java.lang.String content)
Invokes the .NET member CreateAlternateViewFromString.
|
static AlternateView |
CreateAlternateViewFromString(java.lang.String content,
ContentType contentType)
Invokes the .NET member CreateAlternateViewFromString.
|
static AlternateView |
CreateAlternateViewFromString(java.lang.String content,
Encoding contentEncoding,
java.lang.String mediaType)
Invokes the .NET member CreateAlternateViewFromString.
|
Uri |
getBaseUri()
Gets the value of the .NET property BaseUri.
|
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. |
LinkedResourceCollection |
getLinkedResources()
Gets the value of the .NET property LinkedResources.
|
void |
setBaseUri(Uri BaseUri)
Sets the value of the .NET property BaseUri.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
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 AlternateView()
throws java.lang.Throwable
java.lang.Throwablepublic AlternateView(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 AlternateView(Stream contentStream) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, FormatException, ArgumentOutOfRangeException
contentStream - the argument of type Streamjava.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 itpublic AlternateView(Stream contentStream, ContentType contentType) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, FormatException, ArgumentOutOfRangeException
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 itpublic AlternateView(Stream contentStream, java.lang.String mediaType) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, UnreachableException, IndexOutOfRangeException, FormatException, InvalidOperationException
contentStream - the argument of type StreammediaType - 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 itpublic AlternateView(java.lang.String fileName)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
SerializationException,
PlatformNotSupportedException,
UnreachableException,
IndexOutOfRangeException,
FormatException,
InvalidOperationException,
NotSupportedException
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 itpublic AlternateView(java.lang.String fileName,
ContentType contentType)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
SerializationException,
FormatException,
NotSupportedException,
PlatformNotSupportedException
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 itpublic AlternateView(java.lang.String fileName,
java.lang.String mediaType)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
SerializationException,
PlatformNotSupportedException,
UnreachableException,
IndexOutOfRangeException,
FormatException,
InvalidOperationException,
NotSupportedException
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 itpublic static AlternateView cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into AlternateView, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedAlternateView instancejava.lang.Throwable - in case of error during cast operationpublic static AlternateView CreateAlternateViewFromString(java.lang.String content) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, UnreachableException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, OutOfMemoryException, NullReferenceException
content - the argument of type java.lang.Stringjava.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 itArgumentNullException - if the .NET member raises itUnreachableException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itNullReferenceException - if the .NET member raises itpublic static AlternateView CreateAlternateViewFromString(java.lang.String content, ContentType contentType) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, CultureNotFoundException, FormatException
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 CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itFormatException - if the .NET member raises itpublic static AlternateView CreateAlternateViewFromString(java.lang.String content, Encoding contentEncoding, java.lang.String mediaType) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, UnreachableException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, OutOfMemoryException, NullReferenceException
content - 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 CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itUnreachableException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itNullReferenceException - if the .NET member raises itpublic Uri getBaseUri() throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, UnreachableException, IndexOutOfRangeException, FormatException, InvalidOperationException, NotSupportedException, OutOfMemoryException, CultureNotFoundException, UriFormatException
java.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 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 itCultureNotFoundException - if the .NET member raises itUriFormatException - if the .NET member raises itpublic 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 LinkedResourceCollection getLinkedResources() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic void setBaseUri(Uri BaseUri) throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, NullReferenceException, OutOfMemoryException, ExternalException, ArgumentNullException, InvalidOperationException, CultureNotFoundException, ArgumentOutOfRangeException, UriFormatException, FormatException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException, InvalidCastException
BaseUri - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itNullReferenceException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itUriFormatException - if the .NET member raises itFormatException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itInvalidCastException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class AttachmentBaseinstance - the new underlying object