Unit.IsEmpty 属性

定义

获取一个值,该值指示 Unit 是否为空。Gets a value indicating whether the Unit is empty.

public:
 property bool IsEmpty { bool get(); };
public bool IsEmpty { get; }
member this.IsEmpty : bool
Public ReadOnly Property IsEmpty As Boolean

属性值

Boolean

如果 true 为空,则为 Unit;否则为 falsetrue if the Unit is empty; otherwise, false.

注解

使用 IsEmpty 属性确定是否 Unit 为空。Use the IsEmpty property to determine whether the Unit is empty. Unit如果 Type 属性包含的枚举值为0,则为空。The Unit is empty if the Type property contains an enumeration value of 0.

适用于

另请参阅