Condividi tramite


.NET Interop from X++

Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

Classes in assemblies that are managed by the common language runtime (CLR) can be accessed in X++ code. This feature of Microsoft Dynamics AX is called .NET interop from X++.

.NET interop from X++ is useful when you want your X++ code to access the functionalities in a CLR managed assembly. This includes assemblies that are installed with the .NET Framework. It also includes any assemblies that you create with a language such as C# or Visual Basic.

The .NET interop from X++ feature works in the direction from X++ calling into CLR managed assemblies. For information about .NET interop in the other direction, see the following topics:

In This Section

How to: Access Static and Instance Members of .NET Framework Classes from X++

How to: Marshal Between X++ and CLR Primitive Types

Operators for CLR Primitive Types

How to: Convert Between utcdatetime and System.DateTime

How to: Use X++ Syntax for CLR Arrays

How to: Substitute Primitive Parameter Types Between the CLR and X++

How to: Use the byref Keyword for CLR Interop

How to: Compile and Run X++ that Calls CLR Managed Assemblies

CLR Interop Issues Across Tiers

How to: Catch Exceptions Thrown from CLR Objects

Reflect on .NET Elements of X++ Methods

See also

CLRInterop Class

CLRObject Class

Integration with Microsoft Dynamics AX

Announcements: New book: "Inside Microsoft Dynamics AX 2012 R3" now available. Get your copy at the MS Press Store.