This documentation is archived and is not being maintained.

UnmanagedFunctionPointerAttribute.UnmanagedFunctionPointerAttribute Constructor

Initializes a new instance of the UnmanagedFunctionPointerAttribute class with the specified calling convention.

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

public UnmanagedFunctionPointerAttribute (
	CallingConvention callingConvention
)
public UnmanagedFunctionPointerAttribute (
	CallingConvention callingConvention
)
public function UnmanagedFunctionPointerAttribute (
	callingConvention : CallingConvention
)
Not applicable.

Parameters

callingConvention

The specified calling convention.

This method specifies the calling convention for the delegate in unmanaged code and is the most common use of the UnmanagedFunctionPointerAttribute attribute. You can set the callingConvention parameter to one of the values in the CallingConvention enumeration.

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
Show: