共用方式為


Core.EntryPointAttribute 類別 (F#)

將這個屬性加入至函式,會表示這個函式是應用程式的進入點。 如果這個 Absent 未指定給 EXE,則編譯序列中最後一個檔案內模組繫結的隱含初始設定會做為進入點。

**命名空間/模組路徑:**Microsoft.FSharp.Core

組件:FSharp.Core (在 FSharp.Core.dll 中)

[<AttributeUsage(AttributeTargets.Method, AllowMultiple = false)>]
[<Sealed>]
type EntryPointAttribute =
 class
  new EntryPointAttribute : unit -> EntryPointAttribute
 end

備註

您也可以使用名稱的簡短形式 EntryPoint

建構函式

成員

描述

new

建立屬性的執行個體。

平台

Windows 8 中, Windows 7, Windows Server 2012 上, Windows Server 2008 R2

版本資訊

F# 核心程式庫版本

支援版本:2.0, 4.0,可攜式執行檔 (PE)。

請參閱

參考

Microsoft.FSharp.Core 命名空間 (F#)

進入點 (F#)