state与status的区别
status 指人时暗指相对的地位,指物时相当于 situation。situation 较狭义地指由环境综合决定的特定时间上的状态或情形。
state 人或物存在或所处的状态,和 condition 大体上可以互换使用。condition 指一定的原因/条件或环境所产生的特定情况。
以 Recordset 为例
Recordset 具有 Status 和 State 属性,说明二者还是有区别的。
Recordset.Status 表示进行批处理后,当前记录的情况。结果有:操作被取消,结果未被保存;记录被锁无法保存……。
Recordset.State 表示 Recordset 对象是打开的,还是关闭的,还是正在执行异步操作。
再举例子
最近的国际形式如何?status。
水在标准大气压下 100 摄氏度时是什么状态?state。
http://stackoverflow.com/questions/1162816/naming-conventions-state-versus-status
It depends on the context State generally refers to the entire state of an entity - all its values and relationships at a particular point in time (usually, current) Status is more of a time-point, say, where something is at in a process or workflow - is it dirty (therefore requiring saving), is it complete, is it pending input, etc
这取决于使用环境。 State一般囊括了一个实体的所有状态。 Status更像是一个时间点,比如在一个流程中,这个对象是dirty、complete或者pending input等等。
http://english.stackexchange.com/questions/12958/status-vs-state
Can anyone explain what the difference between status and state is when I talk about the condition or situation of an object?
Here's what I got from Longman English Dictionary.
status: a situation at a particular time, especially in an argument, discussion etc.
state: the physical or mental condition that someone or something is in
or example, how do you interpret these two sentences:
What is the current status of this project?
What is the current state of this project?
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
2012-09-19 解析“0”的读法
2012-09-19 汉语拼音方案里的O(哦)和 UO(窝)