Export (0) Print
Expand All

DllImportAttribute.EntryPoint Field

Indicates the name or ordinal of the DLL entry point to be called.

[Visual Basic]
Public EntryPoint As String
public string EntryPoint;
public: String* EntryPoint;
public var EntryPoint : String;


You can specify the entry-point name by supplying a string indicating the name of the DLL containing the entry point, or you can identify the entry point by its ordinal. Ordinals are prefixed with the # sign, for example, #1. If you omit this field, the common language runtime uses the name of the .NET method marked with the DllImportAttribute.

For additional information, see Identifying Functions in DLLs. For examples showing how to use the EntryPoint field, see Specifying an Entry Point.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

DllImportAttribute Class | DllImportAttribute Members | System.Runtime.InteropServices Namespace | DllImportAttribute

© 2014 Microsoft