ErrorObject オブジェクトのエラー コードを取得または設定します。
名前空間: Microsoft.Office.Interop.InfoPath
アセンブリ: Microsoft.Office.Interop.InfoPath (microsoft.office.interop.infopath.dll 内)
構文
'宣言
<DispIdAttribute(5)> _
Property ErrorCode As Integer
'使用
Dim instance As Error
Dim value As Integer
value = instance.ErrorCode
instance.ErrorCode = value
[DispIdAttribute(5)]
int ErrorCode { get; set; }
例
次の例では、Error オブジェクトの ErrorCode プロパティを使用して、エラーのエラー コード番号をメッセージ ボックスに表示しています。
ErrorObject er = thisXDocument.Errors[0];
IXMLDOMNode myNode = er.Node;
thisXDocument.UI.Alert("this is the error code: " + er.ErrorCode);
関連項目
参照
Error インターフェイス
Error のメンバ
Microsoft.Office.Interop.InfoPath 名前空間