_Rules.Item[Object] 属性

定义

获取 RuleIndex指定的 对象,该对象是集合或规则名称中的 Rules 数字索引。

public:
 property Microsoft::Office::Interop::Outlook::Rule ^ default[System::Object ^] { Microsoft::Office::Interop::Outlook::Rule ^ get(System::Object ^ Index); };
public Microsoft.Office.Interop.Outlook.Rule this[object Index] { get; }
Default Public ReadOnly Property Item(Index As Object) As Rule

参数

Index
Object

C# 中从 1 开始的 整数 (int ) 表示 Rules 集合中的索引的值,或者 C# 中的 字符串 (字符串 ,) 表示规则 Name的默认属性的值的名称。

属性值

指定的规则匹配的 IndexRule 对象。

注解

当在集合中找不到该规则时,将返回一个错误。

适用于