System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute Class

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

See Also: UnmanagedFunctionPointerAttribute Members


[System.AttributeUsage(System.AttributeTargets.Delegate, AllowMultiple=false, Inherited=false)]
public sealed class UnmanagedFunctionPointerAttribute : Attribute


The fields of the System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute attribute control various aspects of the transition of a delegate to an unmanaged function pointer, and are the same as the fields with identical names in the System.Runtime.InteropServices.DllImportAttribute attribute. These fields are optional, but if you do not specify a field name, System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute is ignored.

For more information about using attributes, see Extending Metadata Using Attributes.


Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions:,
Since: .NET 2.0