Export (0) Print
Expand All

DllImportAttribute Members

Indicates that the attributed method is exposed by an unmanaged dynamic-link library (DLL) as a static entry point.

The following tables list the members exposed by the DllImportAttribute type.

  Name Description
Public method Supported by the .NET Compact Framework DllImportAttribute Initializes a new instance of the DllImportAttribute class with the name of the DLL containing the method to import.
Top

  Name Description
Public field BestFitMapping Enables or disables best-fit mapping behavior when converting Unicode characters to ANSI characters.
Public field Supported by the .NET Compact Framework CallingConvention Indicates the calling convention of an entry point.
Public field Supported by the .NET Compact Framework CharSet Indicates how to marshal string parameters to the method and controls name mangling.
Public field Supported by the .NET Compact Framework 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 field Supported by the .NET Compact Framework 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 field Supported by the .NET Compact Framework SetLastError Indicates whether the callee calls the SetLastError Win32 API function before returning from the attributed method.
Public field ThrowOnUnmappableChar Enables or disables the throwing of an exception on an unmappable Unicode character that is converted to an ANSI "?" character.
Top

  Name Description
Public property TypeId  When implemented in a derived class, gets a unique identifier for this Attribute.(Inherited from Attribute.)
Public property Supported by the .NET Compact Framework Value Gets the name of the DLL file that contains the entry point.
Top

  Name Description
Public method Supported by the .NET Compact Framework Equals  Overloaded. (Inherited from Attribute.)
Public method Static Supported by the .NET Compact Framework GetCustomAttribute  Overloaded. Retrieves a custom attribute of a specified type applied to an assembly, module, type member, or method parameter. (Inherited from Attribute.)
Public method Static Supported by the .NET Compact Framework GetCustomAttributes  Overloaded. Retrieves an array of the custom attributes applied to an assembly, module, type member, or method parameter. (Inherited from Attribute.)
Public method Supported by the .NET Compact Framework GetHashCode  Returns the hash code for this instance. (Inherited from Attribute.)
Public method Supported by the .NET Compact Framework GetType  Gets the Type of the current instance. (Inherited from Object.)
Public method IsDefaultAttribute  When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class. (Inherited from Attribute.)
Public method Static Supported by the .NET Compact Framework IsDefined  Overloaded. Determines whether any custom attributes of a specified type are applied to an assembly, module, type member, or method parameter. (Inherited from Attribute.)
Public method Supported by the .NET Compact Framework Match  When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (Inherited from Attribute.)
Public method Static Supported by the .NET Compact Framework ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
Public method Supported by the .NET Compact Framework ToString  Returns a String that represents the current Object. (Inherited from Object.)
Top

Community Additions

ADD
Show:
© 2014 Microsoft