public class AssemblyName extends NetObject
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Reflection.AssemblyName
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.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
|
static java.lang.String |
assemblyShortName
Assembly name: System.Private.CoreLib
|
static java.lang.String |
className
Qualified class name: System.Reflection.AssemblyName
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
AssemblyName()
Initializes a new instance by invoking the .NET constructor.
|
AssemblyName(java.lang.Object instance)
Internal constructor.
|
AssemblyName(java.lang.String assemblyName)
Initializes a new instance by invoking the .NET constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static AssemblyName |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into AssemblyName, a cast assert is made to check if types are compatible. |
NetObject |
Clone()
Invokes the .NET member Clone.
|
static AssemblyName |
GetAssemblyName(java.lang.String assemblyFile)
Invokes the .NET member GetAssemblyName.
|
java.lang.String |
getCodeBase()
Gets the value of the .NET property CodeBase.
|
AssemblyContentType |
getContentType()
Gets the value of the .NET property ContentType.
|
CultureInfo |
getCultureInfo()
Gets the value of the .NET property CultureInfo.
|
java.lang.String |
getCultureName()
Gets the value of the .NET property CultureName.
|
java.lang.String |
getEscapedCodeBase()
Gets the value of the .NET property EscapedCodeBase.
|
AssemblyNameFlags |
getFlags()
Gets the value of the .NET property Flags.
|
java.lang.String |
getFullName()
Gets the value of the .NET property FullName.
|
AssemblyHashAlgorithm |
getHashAlgorithm()
Gets the value of the .NET property HashAlgorithm.
|
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. |
StrongNameKeyPair |
getKeyPair()
Gets the value of the .NET property KeyPair.
|
java.lang.String |
getName()
Gets the value of the .NET property Name.
|
void |
GetObjectData(SerializationInfo info,
StreamingContext context)
Invokes the .NET member GetObjectData.
|
ProcessorArchitecture |
getProcessorArchitecture()
Gets the value of the .NET property ProcessorArchitecture.
|
byte[] |
GetPublicKey()
Invokes the .NET member GetPublicKey.
|
byte[] |
GetPublicKeyToken()
Invokes the .NET member GetPublicKeyToken.
|
Version |
getVersion()
Gets the value of the .NET property Version.
|
AssemblyVersionCompatibility |
getVersionCompatibility()
Gets the value of the .NET property VersionCompatibility.
|
void |
OnDeserialization(NetObject sender)
Invokes the .NET member OnDeserialization.
|
static boolean |
ReferenceMatchesDefinition(AssemblyName reference,
AssemblyName definition)
Invokes the .NET member ReferenceMatchesDefinition.
|
void |
setCodeBase(java.lang.String CodeBase)
Sets the value of the .NET property CodeBase.
|
void |
setContentType(AssemblyContentType ContentType)
Sets the value of the .NET property ContentType.
|
void |
setCultureInfo(CultureInfo CultureInfo)
Sets the value of the .NET property CultureInfo.
|
void |
setCultureName(java.lang.String CultureName)
Sets the value of the .NET property CultureName.
|
void |
setFlags(AssemblyNameFlags Flags)
Sets the value of the .NET property Flags.
|
void |
setHashAlgorithm(AssemblyHashAlgorithm HashAlgorithm)
Sets the value of the .NET property HashAlgorithm.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setKeyPair(StrongNameKeyPair KeyPair)
Sets the value of the .NET property KeyPair.
|
void |
setName(java.lang.String Name)
Sets the value of the .NET property Name.
|
void |
setProcessorArchitecture(ProcessorArchitecture ProcessorArchitecture)
Sets the value of the .NET property ProcessorArchitecture.
|
void |
SetPublicKey(byte[] publicKey)
Invokes the .NET member SetPublicKey.
|
void |
SetPublicKey(JCORefOut dupParam0)
Invokes the .NET member SetPublicKey.
|
void |
SetPublicKeyToken(byte[] publicKeyToken)
Invokes the .NET member SetPublicKeyToken.
|
void |
SetPublicKeyToken(JCORefOut dupParam0)
Invokes the .NET member SetPublicKeyToken.
|
void |
setVersion(Version Version)
Sets the value of the .NET property Version.
|
void |
setVersionCompatibility(AssemblyVersionCompatibility VersionCompatibility)
Sets the value of the .NET property VersionCompatibility.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public AssemblyName()
throws java.lang.Throwable
java.lang.Throwable - if the .NET constructor failspublic AssemblyName(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 AssemblyName(java.lang.String assemblyName)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentNullException,
IndexOutOfRangeException,
PlatformNotSupportedException,
FileLoadException,
InvalidOperationException,
ArgumentOutOfRangeException,
CultureNotFoundException,
OutOfMemoryException,
ExternalException
assemblyName - 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 itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFileLoadException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itpublic static AssemblyName cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into AssemblyName, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedAssemblyName instancejava.lang.Throwable - in case of error during cast operationpublic NetObject Clone() throws java.lang.Throwable, PlatformNotSupportedException
java.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itpublic static AssemblyName GetAssemblyName(java.lang.String assemblyFile) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentNullException, TypeLoadException, ArgumentException, ArgumentOutOfRangeException, MissingMethodException, NotSupportedException
assemblyFile - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itTypeLoadException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itMissingMethodException - if the .NET member raises itNotSupportedException - if the .NET member raises itpublic java.lang.String getCodeBase()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic AssemblyContentType getContentType() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic CultureInfo getCultureInfo() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getCultureName()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getEscapedCodeBase()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
FormatException
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 itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itpublic AssemblyNameFlags getFlags() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getFullName()
throws java.lang.Throwable,
InvalidOperationException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentException,
ArgumentOutOfRangeException,
SecurityException,
IndexOutOfRangeException,
NotSupportedException
java.lang.Throwable - if the call fails in the bridge or in the CLRInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itSecurityException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itpublic AssemblyHashAlgorithm getHashAlgorithm() 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 NetObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectpublic StrongNameKeyPair getKeyPair() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
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 itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic java.lang.String getName()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void GetObjectData(SerializationInfo info, StreamingContext context) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
info - the argument of type SerializationInfocontext - the argument of type StreamingContextjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic ProcessorArchitecture getProcessorArchitecture() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic byte[] GetPublicKey()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic byte[] GetPublicKeyToken()
throws java.lang.Throwable,
InvalidOperationException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentException,
ArgumentOutOfRangeException,
SecurityException,
IndexOutOfRangeException
java.lang.Throwable - if the call fails in the bridge or in the CLRInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itSecurityException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic Version getVersion() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic AssemblyVersionCompatibility getVersionCompatibility() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void OnDeserialization(NetObject sender) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
sender - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic static boolean ReferenceMatchesDefinition(AssemblyName reference, AssemblyName definition) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CultureNotFoundException, OutOfMemoryException, ExternalException
reference - the argument of type AssemblyNamedefinition - the argument of type AssemblyNamejava.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 itArgumentNullException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itpublic void setCodeBase(java.lang.String CodeBase)
throws java.lang.Throwable
CodeBase - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setContentType(AssemblyContentType ContentType) throws java.lang.Throwable
ContentType - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setCultureInfo(CultureInfo CultureInfo) throws java.lang.Throwable
CultureInfo - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setCultureName(java.lang.String CultureName)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentNullException,
OutOfMemoryException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
RankException,
ArrayTypeMismatchException,
CultureNotFoundException
CultureName - 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 itArgumentNullException - if the .NET member raises itOutOfMemoryException - 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 itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itpublic void setFlags(AssemblyNameFlags Flags) throws java.lang.Throwable
Flags - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setHashAlgorithm(AssemblyHashAlgorithm HashAlgorithm) throws java.lang.Throwable
HashAlgorithm - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying objectpublic void setKeyPair(StrongNameKeyPair KeyPair) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
KeyPair - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic void setName(java.lang.String Name)
throws java.lang.Throwable
Name - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setProcessorArchitecture(ProcessorArchitecture ProcessorArchitecture) throws java.lang.Throwable
ProcessorArchitecture - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void SetPublicKey(byte[] publicKey)
throws java.lang.Throwable
publicKey - the argument of type byte[]java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void SetPublicKey(JCORefOut dupParam0) throws java.lang.Throwable
dupParam0 - the argument of type JCORefOutjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void SetPublicKeyToken(byte[] publicKeyToken)
throws java.lang.Throwable
publicKeyToken - the argument of type byte[]java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void SetPublicKeyToken(JCORefOut dupParam0) throws java.lang.Throwable
dupParam0 - the argument of type JCORefOutjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setVersion(Version Version) throws java.lang.Throwable
Version - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setVersionCompatibility(AssemblyVersionCompatibility VersionCompatibility) throws java.lang.Throwable
VersionCompatibility - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLR