System.Runtime.InteropServices.DllImportAttribute.EntryPoint Field

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

Syntax

public string EntryPoint

Remarks

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 System.Runtime.InteropServices.DllImportAttribute.

For additional information, see [<topic://cpconidentifyingfunctionsindlls>]. For examples showing how to use the DllImportAttribute.EntryPoint field, see Specifying an Entry Point.

Requirements

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