小编rou*_*auo的帖子

Visual Basic:使用OR进行变量赋值

我不明白OR语句在这个代码示例中做了什么.

DE.Properties("UserAccountControl").Value = CInt(DE.Properties("UserAccountControl").Value) Or AccountOptionsEnum.UF_ACCOUNTDISABLE
Run Code Online (Sandbox Code Playgroud)

DE.Properties("UserAccountControl").值表示小数.

枚举是整数.

我知道这是代码用于在Active Directory中停用用户但我不明白"OR"在这里是如何工作的.

谢谢

.net vb.net bit-manipulation active-directory bit

4
推荐指数
1
解决办法
163
查看次数

标签 统计

.net ×1

active-directory ×1

bit ×1

bit-manipulation ×1

vb.net ×1