FormErrorCollection.Item プロパティ
現在のフォームに関連付けられた FormErrorCollection オブジェクト内の FormError オブジェクトをインデックス値で取得します。
名前空間: Microsoft.Office.InfoPath
アセンブリ: Microsoft.Office.InfoPath (Microsoft.Office.InfoPath.dll)
構文
'宣言
Public MustOverride ReadOnly Default Property Item ( _
index As Integer _
) As FormError
Get
'使用
Dim instance As FormErrorCollection
Dim index As Integer
Dim value As FormError
value = instance(index)
public abstract FormError this[
int index
] { get; }
パラメーター
- index
型: System.Int32
取得する FormError オブジェクトのゼロベースのインデックス。
プロパティ値
型: Microsoft.Office.InfoPath.FormError
フォームのエラーを表す FormError オブジェクト。
例外
例外 | 条件 |
---|---|
IndexOutOfRangeException | インデックス値が無効です (index < 0 または index > Count)。 |
解説
このメンバーには、現在開いているフォームと同じドメインで実行中のフォーム、またはクロスドメインのアクセス許可が与えられたフォームのみがアクセスできます。
この型またはメンバーには、Microsoft InfoPath Filler または Web ブラウザーで開かれたフォームを実行中のコードからアクセスできます。