表示 void。
Namespace:System.Reactive
装配: System.Reactive.dll) 中的 System.Reactive (
语法
'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 中共享的)成员都是线程安全的。 但不保证所有实例成员都是线程安全的。