System.Runtime.InteropServices Namespace

The System.Runtime.InteropServices namespace includes classes that allow the use of P/Invoke to call out to unmanaged code from a .NET Compact Framework application. The namespace is implemented in Mscorlib.dll. In the desktop implementation of this namespace, there is support for COM Interop, which is not supported in the .NET Compact Framework. The classes and structures of this namespace are listed in Table A-20.

Table A-20. Classes and Structures in the System.Runtime. InteropServices Namespace 

Class or Structure

Description

ArrayWithOffset structure

Not supported.

AutomationProxyAttribute class

Not supported.

BestFitMappingAttribute class

Not supported.

BIND_OPTS structure

Not supported.

Get Microsoft® .NET Compact Framework (Core Reference) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.