DllImportAttribute Fields

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

The DllImportAttribute type exposes the following members.

Fields

  Name Description
Public field BestFitMapping Enables or disables best-fit mapping behavior when converting Unicode characters to ANSI characters.
Public fieldSupported by Silverlight for Windows PhoneSupported by Xbox 360 CallingConvention Indicates the calling convention of an entry point.
Public fieldSupported by Silverlight for Windows PhoneSupported by Xbox 360 CharSet Indicates how to marshal string parameters to the method and controls name mangling.
Public fieldSupported by Silverlight for Windows PhoneSupported by Xbox 360 EntryPoint Indicates the name or ordinal of the DLL entry point to be called.
Public field ExactSpelling Controls whether the DllImportAttribute.CharSet field causes the common language runtime to search an unmanaged DLL for entry-point names other than the one specified.
Public fieldSupported by Silverlight for Windows PhoneSupported by Xbox 360 PreserveSig Indicates whether unmanaged methods that have HRESULT or retval return values are directly translated or whether HRESULT or retval return values are automatically converted to exceptions.
Public fieldSupported by Silverlight for Windows PhoneSupported by Xbox 360 SetLastError Indicates whether the callee calls the SetLastError Win32 API function before returning from the attributed method.

Top