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

Syntax

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

Remarks

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.

Requirements

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