Skip to main content
System.Runtime.InteropServices package icon

System.Runtime.InteropServices

Provides Windows/Legacy types that support COM interop and platform invoke services. Cross platform Interop types have been moved and forwarded to System.Runtime.InteropServices.PInvoke. Cross platform members of Marshal have also been moved to PInvokeMarshal in System.Runtime.InteropServices.PInvoke. Commonly Used Types: System.Runtime.InteropServices.COMException System.Runtime.InteropServices.Marshal \r\n TFS ID: 1599443, GitHub SHA: https://github.com/dotnet/corefx/tree/eede273a4dfabcea608621f5e1bbf8ad00584cfb

Total Downloads
3.6B
3,615,462,395
Published
May 16, 2016
Latest stable version

Install

.NET CLI
dotnet add package System.Runtime.InteropServices --version 4.1.0-rc2-24027
Package Manager Console
Install-Package System.Runtime.InteropServices -Version 4.1.0-rc2-24027
PackageReference
<PackageReference Include="System.Runtime.InteropServices" Version="4.1.0-rc2-24027" />

Frameworks

MonoAndroid1.0 MonoTouch1.0 .NETFramework4.5 .NETFramework4.6.2 .NETCore5.0 .NETStandard1.1 .NETStandard1.2 .NETStandard1.3 .NETStandard1.5 .NETPortable0.0-Profile111 Windows8.0 WindowsPhoneApp8.1 Xamarin.iOS1.0 Xamarin.Mac2.0 Xamarin.TVOS1.0 Xamarin.WatchOS1.0

Dependencies

System.Runtime
.NETFramework4.6.2
[4.1.0-rc2-24027, )
[4.0.0-rc2-24027, )
[4.1.0-rc2-24027, )
[4.0.1-rc2-24027, )
System.Runtime
.NETCore5.0
[4.1.0-rc2-24027, )
[4.0.1-rc2-24027, )
System.Reflection
.NETStandard1.1
[4.1.0-rc2-24027, )
[4.0.1-rc2-24027, )
System.Runtime
.NETStandard1.1
[4.1.0-rc2-24027, )
System.Reflection
.NETStandard1.2
[4.1.0-rc2-24027, )
[4.0.1-rc2-24027, )
System.Runtime
.NETStandard1.2
[4.1.0-rc2-24027, )
System.Reflection
.NETStandard1.3
[4.1.0-rc2-24027, )
[4.0.1-rc2-24027, )
System.Runtime
.NETStandard1.3
[4.1.0-rc2-24027, )
System.Runtime.Handles
.NETStandard1.3
[4.0.1-rc2-24027, )
System.Reflection
.NETStandard1.5
[4.1.0-rc2-24027, )
[4.0.1-rc2-24027, )
System.Runtime
.NETStandard1.5
[4.1.0-rc2-24027, )
System.Runtime.Handles
.NETStandard1.5
[4.0.1-rc2-24027, )
[4.0.0-rc2-24027, )

Adoption guide

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.

No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.

Compatibility metadata lists 16 target frameworks; confirm the exact target used by your application.

The published metadata declares 21 direct dependency entries across framework groups. Inspect the resolved dependency graph for your target framework.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.