Export (0) Print
Expand All
0 out of 4 rated this helpful - Rate this topic

UnmanagedFunctionPointerAttribute Class

Note: This class is new in the .NET Framework version 2.0.

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)

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

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 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.