public class Marshal extends NetObject
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Runtime.InteropServices.Marshal
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=9.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.Runtime.InteropServices.Marshal
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Marshal() |
Marshal(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
AreComObjectsAvailableForCleanup()
Invokes the .NET member AreComObjectsAvailableForCleanup.
|
static NetObject |
BindToMoniker(java.lang.String monikerName)
Invokes the .NET member BindToMoniker.
|
static Marshal |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Marshal, a cast assert is made to check if types are compatible. |
static void |
ChangeWrapperHandleStrength(NetObject otp,
boolean fIsWeak)
Invokes the .NET member ChangeWrapperHandleStrength.
|
static void |
CleanupUnusedObjectsInCurrentContext()
Invokes the .NET member CleanupUnusedObjectsInCurrentContext.
|
static NetObject |
CreateWrapperOfType(NetObject o,
NetType t)
Invokes the .NET member CreateWrapperOfType.
|
static int |
FinalReleaseComObject(NetObject o)
Invokes the .NET member FinalReleaseComObject.
|
static Guid |
GenerateGuidForType(NetType type)
Invokes the .NET member GenerateGuidForType.
|
static java.lang.String |
GenerateProgIdForType(NetType type)
Invokes the .NET member GenerateProgIdForType.
|
static NetObject |
GetComObjectData(NetObject obj,
NetObject key)
Invokes the .NET member GetComObjectData.
|
static int |
GetEndComSlot(NetType t)
Invokes the .NET member GetEndComSlot.
|
static int |
GetExceptionCode()
Invokes the .NET member GetExceptionCode.
|
static NetException |
GetExceptionForHR(int errorCode)
Invokes the .NET member GetExceptionForHR.
|
static int |
GetHRForException(NetException e)
Invokes the .NET member GetHRForException.
|
static int |
GetHRForLastWin32Error()
Invokes the .NET member GetHRForLastWin32Error.
|
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. |
static int |
GetLastPInvokeError()
Invokes the .NET member GetLastPInvokeError.
|
static java.lang.String |
GetLastPInvokeErrorMessage()
Invokes the .NET member GetLastPInvokeErrorMessage.
|
static int |
GetLastSystemError()
Invokes the .NET member GetLastSystemError.
|
static int |
GetLastWin32Error()
Invokes the .NET member GetLastWin32Error.
|
static java.lang.String |
GetPInvokeErrorMessage(int error)
Invokes the .NET member GetPInvokeErrorMessage.
|
static int |
GetStartComSlot(NetType t)
Invokes the .NET member GetStartComSlot.
|
static NetType |
GetTypeFromCLSID(Guid clsid)
Invokes the .NET member GetTypeFromCLSID.
|
static java.lang.String |
GetTypeInfoName(ITypeInfo typeInfo)
Invokes the .NET member GetTypeInfoName.
|
static boolean |
IsComObject(NetObject o)
Invokes the .NET member IsComObject.
|
static boolean |
IsTypeVisibleFromCom(NetType t)
Invokes the .NET member IsTypeVisibleFromCom.
|
static void |
Prelink(MethodInfo m)
Invokes the .NET member Prelink.
|
static void |
PrelinkAll(NetType c)
Invokes the .NET member PrelinkAll.
|
static byte |
ReadByte(NetObject ptr,
int ofs)
Invokes the .NET member ReadByte.
|
static short |
ReadInt16(NetObject ptr,
int ofs)
Invokes the .NET member ReadInt16.
|
static int |
ReadInt32(NetObject ptr,
int ofs)
Invokes the .NET member ReadInt32.
|
static long |
ReadInt64(NetObject ptr,
int ofs)
Invokes the .NET member ReadInt64.
|
static int |
ReleaseComObject(NetObject o)
Invokes the .NET member ReleaseComObject.
|
static boolean |
SetComObjectData(NetObject obj,
NetObject key,
NetObject data)
Invokes the .NET member SetComObjectData.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
static void |
SetLastPInvokeError(int error)
Invokes the .NET member SetLastPInvokeError.
|
static void |
SetLastSystemError(int error)
Invokes the .NET member SetLastSystemError.
|
static <T extends IJCOBridgeReflected> |
SizeOf()
Invokes the .NET member SizeOf.
|
static int |
SizeOf(NetObject structure)
Invokes the .NET member SizeOf.
|
static int |
SizeOf(NetType t)
Invokes the .NET member SizeOf.
|
static <T extends IJCOBridgeReflected> |
SizeOf(T structure)
Invokes the .NET member SizeOf.
|
static void |
ThrowExceptionForHR(int errorCode)
Invokes the .NET member ThrowExceptionForHR.
|
static void |
WriteByte(NetObject ptr,
int ofs,
byte val)
Invokes the .NET member WriteByte.
|
static void |
WriteInt16(JCORefOut<NetObject> ptr,
int ofs,
char val)
Invokes the .NET member WriteInt16.
|
static void |
WriteInt16(NetObject ptr,
int ofs,
short val)
Invokes the .NET member WriteInt16.
|
static void |
WriteInt32(NetObject ptr,
int ofs,
int val)
Invokes the .NET member WriteInt32.
|
static void |
WriteInt64(NetObject ptr,
int ofs,
long val)
Invokes the .NET member WriteInt64.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public Marshal()
throws java.lang.Throwable
java.lang.Throwablepublic Marshal(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 static boolean AreComObjectsAvailableForCleanup()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static NetObject BindToMoniker(java.lang.String monikerName) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
monikerName - 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 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 static Marshal cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Marshal, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedMarshal instancejava.lang.Throwable - in case of error during cast operationpublic static void ChangeWrapperHandleStrength(NetObject otp, boolean fIsWeak) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
otp - the argument of type NetObjectfIsWeak - the argument of type booleanjava.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 itpublic static void CleanupUnusedObjectsInCurrentContext()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static NetObject CreateWrapperOfType(NetObject o, NetType t) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
o - the argument of type NetObjectt - the argument of type NetTypejava.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 static int FinalReleaseComObject(NetObject o) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
o - 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 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 static Guid GenerateGuidForType(NetType type) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
type - the argument of type NetTypejava.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 itpublic static java.lang.String GenerateProgIdForType(NetType type) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, FormatException, AmbiguousMatchException
type - the argument of type NetTypejava.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 itFormatException - if the .NET member raises itAmbiguousMatchException - if the .NET member raises itpublic static NetObject GetComObjectData(NetObject obj, NetObject key) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
obj - the argument of type NetObjectkey - 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 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 static int GetEndComSlot(NetType t) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
t - the argument of type NetTypejava.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 itpublic static int GetExceptionCode()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static NetException GetExceptionForHR(int errorCode) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException
errorCode - the argument of type intjava.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 itpublic static int GetHRForException(NetException e) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
e - the argument of type NetExceptionjava.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 static int GetHRForLastWin32Error()
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 static int GetLastPInvokeError()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static java.lang.String GetLastPInvokeErrorMessage()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
FormatException
java.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 itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itFormatException - if the .NET member raises itpublic static int GetLastSystemError()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static int GetLastWin32Error()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static java.lang.String GetPInvokeErrorMessage(int error)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentNullException,
FormatException
error - the argument of type intjava.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 itFormatException - if the .NET member raises itpublic static int GetStartComSlot(NetType t) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
t - the argument of type NetTypejava.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 itpublic static NetType GetTypeFromCLSID(Guid clsid) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
clsid - the argument of type Guidjava.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 java.lang.String GetTypeInfoName(ITypeInfo typeInfo) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
typeInfo - the argument of type ITypeInfojava.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 itpublic static boolean IsComObject(NetObject o) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
o - 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 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 itpublic static boolean IsTypeVisibleFromCom(NetType t) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
t - the argument of type NetTypejava.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 itpublic static void Prelink(MethodInfo m) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
m - the argument of type MethodInfojava.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 itpublic static void PrelinkAll(NetType c) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
c - the argument of type NetTypejava.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 itpublic static byte ReadByte(NetObject ptr, int ofs) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, AccessViolationException, OutOfMemoryException, MarshalDirectiveException
ptr - the argument of type NetObjectofs - the argument of type intjava.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 itAccessViolationException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itMarshalDirectiveException - if the .NET member raises itpublic static short ReadInt16(NetObject ptr, int ofs) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, AccessViolationException, OutOfMemoryException, MarshalDirectiveException
ptr - the argument of type NetObjectofs - the argument of type intjava.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 itAccessViolationException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itMarshalDirectiveException - if the .NET member raises itpublic static int ReadInt32(NetObject ptr, int ofs) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, AccessViolationException, OutOfMemoryException, MarshalDirectiveException
ptr - the argument of type NetObjectofs - the argument of type intjava.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 itAccessViolationException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itMarshalDirectiveException - if the .NET member raises itpublic static long ReadInt64(NetObject ptr, int ofs) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, AccessViolationException, OutOfMemoryException, MarshalDirectiveException
ptr - the argument of type NetObjectofs - the argument of type intjava.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 itAccessViolationException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itMarshalDirectiveException - if the .NET member raises itpublic static int ReleaseComObject(NetObject o) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException, NullReferenceException
o - 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 itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itNullReferenceException - if the .NET member raises itpublic static boolean SetComObjectData(NetObject obj, NetObject key, NetObject data) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
obj - the argument of type NetObjectkey - the argument of type NetObjectdata - 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 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 setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying objectpublic static void SetLastPInvokeError(int error)
throws java.lang.Throwable
error - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static void SetLastSystemError(int error)
throws java.lang.Throwable
error - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static <T extends IJCOBridgeReflected> int SizeOf() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
T - the type of the generic argument Tjava.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 static int SizeOf(NetObject structure) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
structure - 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 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 itpublic static int SizeOf(NetType t) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
t - the argument of type NetTypejava.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 itpublic static <T extends IJCOBridgeReflected> int SizeOf(T structure) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
T - the type of the generic argument Tstructure - the argument of type Tjava.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 itpublic static void ThrowExceptionForHR(int errorCode)
throws java.lang.Throwable,
PlatformNotSupportedException
errorCode - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itpublic static void WriteByte(NetObject ptr, int ofs, byte val) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, AccessViolationException, OutOfMemoryException, MarshalDirectiveException
ptr - the argument of type NetObjectofs - the argument of type intval - the argument of type bytejava.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 itAccessViolationException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itMarshalDirectiveException - if the .NET member raises itpublic static void WriteInt16(JCORefOut<NetObject> ptr, int ofs, char val) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, AccessViolationException, OutOfMemoryException, MarshalDirectiveException, ArgumentNullException
ptr - the argument of type JCORefOut<NetObject>ofs - the argument of type intval - the argument of type charjava.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 itPlatformNotSupportedException - if the .NET member raises itAccessViolationException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itMarshalDirectiveException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static void WriteInt16(NetObject ptr, int ofs, short val) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, AccessViolationException, OutOfMemoryException, MarshalDirectiveException
ptr - the argument of type NetObjectofs - the argument of type intval - the argument of type shortjava.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 itAccessViolationException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itMarshalDirectiveException - if the .NET member raises itpublic static void WriteInt32(NetObject ptr, int ofs, int val) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, AccessViolationException, OutOfMemoryException, MarshalDirectiveException
ptr - the argument of type NetObjectofs - the argument of type intval - the argument of type intjava.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 itAccessViolationException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itMarshalDirectiveException - if the .NET member raises itpublic static void WriteInt64(NetObject ptr, int ofs, long val) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, AccessViolationException, OutOfMemoryException, MarshalDirectiveException
ptr - the argument of type NetObjectofs - the argument of type intval - the argument of type longjava.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 itAccessViolationException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itMarshalDirectiveException - if the .NET member raises it