共用方式為


Threading.CancellationTokenRegistration 結構 (F#)

表示取消語彙基元來源的登錄。

命名空間/模組路徑:System.Threading

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

[<CustomEquality>]
[<NoComparison>]
type CancellationTokenRegistration =
 struct
  interface IDisposable
  member this.Dispose : unit -> unit
  member this.Equals : CancellationTokenRegistration -> bool
  static member ( = ) : CancellationTokenRegistration * CancellationTokenRegistration -> bool
  static member ( <> ) : CancellationTokenRegistration * CancellationTokenRegistration -> bool
 end

備註

這個型別僅可搭配 F# 核心程式庫版本以 .NET Framework 2.0 為目標。 如果您是使用 .NET Framework 4,請使用名稱一樣是 CancellationTokenRegistration 的 .NET Framework 4 型別。

執行個體成員

成員

描述

處置

釋放與登錄相關聯的資源。

Equals

與另一個登錄的相等比較。

靜態成員

成員

描述

( <> )

登錄的不相等運算子。

( = )

登錄的等號比較運算子。

平台

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

版本資訊

F# 核心程式庫版本

支援版本:2.0

請參閱

參考

System.Threading 命名空間 (F#)