DllImportData Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Information that describes how a method from the underlying Platform is to be invoked.
public ref class DllImportData sealed
public sealed class DllImportData
type DllImportData = class
Public NotInheritable Class DllImportData
- Inheritance
-
DllImportData
Properties
BestFitMapping |
Enables or disables best-fit mapping behavior when converting Unicode characters to ANSI characters. Null if not specified (the setting for the containing type or assembly should be used, BestFitMappingAttribute). |
CallingConvention |
Indicates the calling convention of an entry point. |
CharacterSet |
Indicates how to marshal string parameters and controls name mangling. |
EntryPointName |
Name of the native entry point or null if not specified (the effective name is the same as the name of the target method). |
ExactSpelling |
Controls whether the CharacterSet field causes the common language runtime to search an unmanaged DLL for entry-point names other than the one specified. |
ModuleName |
Module name. Null if value specified in the attribute is not valid. |
SetLastError |
Indicates whether the callee calls the SetLastError Win32 API function before returning from the attributed method. |
ThrowOnUnmappableCharacter |
Enables or disables the throwing of an exception on an unmappable Unicode character that is converted to an ANSI "?" character. Null if not specified. |