System.Runtime.InteropServices.DllImportAttribute.CallingConvention Field

Indicates the calling convention of an entry point.

Syntax

public CallingConvention CallingConvention

Remarks

You set this field to one of the System.Runtime.InteropServices.CallingConvention enumeration members. The default value for the DllImportAttribute.CallingConvention field is CallingConvention.Winapi, which in turn defaults to CallingConvention.StdCall convention.

For more information, see Calling Convention in the MSDN library.

Requirements

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0