Compartir a través de


CLRInterop Class

Definition

The ClrInterop class is a utility class that provides functionality for type marshaling and exception handling. Because all the methods are static, no instantiation of the class is required.

public ref class CLRInterop abstract sealed
public static class CLRInterop
type CLRInterop = class
Public Class CLRInterop
Inheritance
CLRInterop

Properties

AxClassId
AxCLRObjectClassId

Methods

createCLRInvalidOperationException(String)
createCLRObject(String, Object[])
createCLRObjectImpl(Int32, String, Object[], Type)
filterCLRException(Exception)
getAnyTypeForObject(Object)

Converts a common language runtime (CLR) object to a value of the X++ anytype data type.

getCLRType(String)
getLastException()

Retrieves the most recent CLR exception.

getObjectForAnyType(Object)

Converts a value of the X++ anytype data type to a value of the CLRObject data type.

getType(String)
isInitialized(Object)
isNull(Object)

Confirms whether the specified CLRObject instance is set to nullNothingnullptrunita null reference (Nothing in Visual Basic).

loadAssembly(String)
MakeReflectionCall(Object, String, Object[])
Null(String)

Returns a CLR data type that has a value of nullNothingnullptrunita null reference (Nothing in Visual Basic).

parseClrEnum(String, String)

Converts the string representation of the name or numeric value of one or more enumerated constants to an equivalent CLRObject instance.

setCLRException(Exception)
staticInvoke(String, String, Object[])

Calls a static method on a CLR data type.

staticInvokeImpl(String, String, Object[], Type)
stripEmbeddedAssemblyName(String)
throwCLRException(String)

Applies to