共用方式為


Core.StructAttribute 類別 (F#)

將這個屬性加入至型別會導致它無法表示使用.NET Framework 結構。

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

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

[<AttributeUsage(8, AllowMultiple = false)>]
[<Sealed>]
type StructAttribute =
 class
  new StructAttribute : unit -> StructAttribute
 end

備註

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

建構函式

成員

說明

new

建立屬性的執行個體

平台

Windows 7、Windows Vista SP2、Windows XP SP3、Windows XP x64 SP2、Windows Server 2008 R2、Windows Server 2008 SP2、Windows Server 2003 SP2

版本資訊

F# 執行階段

支援版本:2.0、4.0

Silverlight

支援版本:3

請參閱

參考

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

結構 (F#)