表示 void。
Namespace:System.Reactive
裝配: System.Reactive.dll) 中的 System.Reactive (
Syntax
'Declaration
<SerializableAttribute> _
Public Structure Unit _
Implements IEquatable(Of Unit)
'Usage
Dim instance As Unit
[SerializableAttribute]
public struct Unit : IEquatable<Unit>
[SerializableAttribute]
public value class Unit : IEquatable<Unit>
[<SealedAttribute>]
[<SerializableAttribute>]
type Unit =
struct
interface IEquatable<Unit>
end
JScript suports the use of structures, but not the declaration of new ones.
Unit 類型會公開下列成員。
屬性
| 名稱 | 描述 | |
|---|---|---|
|
預設值 | 取得單一單位值。 |
頂端
方法
| 名稱 | 描述 | |
|---|---|---|
|
等於 (物件) | 指出目前的單位是否等於指定的物件。 (覆寫 ValueType.Equals (物件) .) |
|
等於 (單位) | 指出目前的單位是否等於指定的單位。 |
|
完成 | (繼承自 Object.) |
|
GetHashCode | 取得單位值的雜湊碼。 (覆寫 ValueType.GetHashCode () .) |
|
GetType | (繼承自 Object.) |
|
MemberwiseClone | (繼承自 Object.) |
|
ToString | (繼承自 ValueType.) |
頂端
運算子
| 名稱 | 描述 | |
|---|---|---|
|
平等 | 指出第一個和第二個引數是否相等。 |
|
不等式 | 指出第一個和第二個引數是否不相等。 |
頂端
執行緒安全性
這個類型的任何公用靜態 (Visual Basic 中的 Shared) 成員都是安全執行緒。 並非所有的執行個體成員都是安全執行緒。