Export (0) Print
Expand All

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.

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)

[AttributeUsageAttribute(AttributeTargets::Delegate, AllowMultiple=false, Inherited=false)] 
[ComVisibleAttribute(true)] 
public ref class UnmanagedFunctionPointerAttribute sealed : public Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Delegate, AllowMultiple=false, Inherited=false) */ 
/** @attribute ComVisibleAttribute(true) */ 
public final class UnmanagedFunctionPointerAttribute extends Attribute
AttributeUsageAttribute(AttributeTargets.Delegate, AllowMultiple=false, Inherited=false) 
ComVisibleAttribute(true) 
public final class UnmanagedFunctionPointerAttribute extends Attribute
Not applicable.

The fields of the 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 DllImportAttribute attribute. These fields are optional, but if you do not specify a field name, UnmanagedFunctionPointerAttribute is ignored.

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

System.Object
   System.Attribute
    System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2015 Microsoft