RuleConditions Count 屬性(Outlook)RuleConditions.Count property (Outlook)

會傳回 Long,指出所指定集合中的物件個數。Returns a Long indicating the count of objects in the specified collection. 唯讀。Read-only.

語法Syntax

運算式計數expression.Count

_運算式_代表RuleConditions物件的變數。expression A variable that represents a RuleConditions object.

備註Remarks

您可以從1到RuleConditions中列舉**RuleConditions** 集合,以判斷現有規則的所有規則條件。You can enumerate the RuleConditions collection from 1 through RuleConditions.Count to determine all the rule conditions for an existing rule. 雖然 Rules OM 支援建立僅具備最常用規則條件而非「規則及警示精靈」支援之所有規則條件的規則,但 RuleConditions 集合卻含有規則的所有規則條件。Although the Rules OM supports creating rules with only the most commonly used rule conditions and not all rule conditions supported by the Rules and Alerts Wizard, the RuleConditions collection includes all rule conditions of a rule. 因此您永遠可以列舉 RuleConditions 集合物件來決定針對現有規則啟用哪些規則條件。Hence you can always enumerate the RuleConditions collection object to determine which rule conditions are enabled for an existing rule.

另請參閱See also

RuleConditions 物件RuleConditions Object

支援和意見反應Support and feedback

有關於 Office VBA 或這份文件的問題或意見反應嗎?Have questions or feedback about Office VBA or this documentation? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.