state與status的區別

來源:互聯網
上載者:User

標籤:style   blog   http   color   io   使用   ar   for   div   

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 contextState 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?

 

state與status的區別

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.