Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​Runtime.​InteropServices.​UnmanagedFunctionPointerAttribute

Assembly: System.Runtime.InteropServices

Inheritance: object → Attribute → UnmanagedFunctionPointerAttribute

Controls the marshaling behavior of a delegate signature passed as an unmanaged function pointer to or from unmanaged code. This class cannot be inherited.

Fields and Constants

public bool
BestFitMapping
Enables or disables best-fit mapping behavior when converting Unicode characters to ANSI characters.
public CharSet
CharSet
Indicates how to marshal string parameters to the method, and controls name mangling.
public bool
SetLastError
Indicates whether the callee calls the <see langword="SetLastError" /> Windows API function before returning from the attributed method.
public bool
ThrowOnUnmappableChar
Enables or disables the throwing of an exception on an unmappable Unicode character that is converted to an ANSI "?" character.

Properties

CallingConvention
Gets the value of the calling convention.
public object
TypeId

Methods

public bool
Equals​(object obj)
Inherited from Attribute
public int
GetHashCode​()
Inherited from Attribute
public bool
IsDefaultAttribute​()
Inherited from Attribute
public bool
Match​(object obj)
Inherited from Attribute
protected void
Finalize​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object