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
'使用
Dim instance As FormErrorCollection
Dim index As Integer
Dim value As FormError
value = instance(index)
public abstract FormError this [
int index
] { get; }
パラメータ
- index
取得する FormError オブジェクトのゼロベースのインデックス。
プロパティ値
フォームのエラーを表す FormError オブジェクト。
例外処理
例外の種類 | 条件 |
---|---|
インデックス値が無効です (index < 0 または index > Count)。 |
コメント
このメンバは、現在開いているフォームと同じドメイン内で実行されているフォーム、またはドメインを越えたアクセス許可を付与されているフォームだけがアクセスできます。
この型またはメンバは、Microsoft Office InfoPath 2007 または Web ブラウザで開いているフォームで実行されているコードからのみアクセスできます。
関連項目
参照
FormErrorCollection クラス
FormErrorCollection のメンバ
Microsoft.Office.InfoPath 名前空間