/
ErrorObject.xml
52 lines (52 loc) · 3.89 KB
/
ErrorObject.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<Type Name="ErrorObject" FullName="Microsoft.Office.Interop.InfoPath.SemiTrust.ErrorObject">
<TypeSignature Language="C#" Value="public interface ErrorObject : Microsoft.Office.Interop.InfoPath.SemiTrust.Error" />
<TypeSignature Language="ILAsm" Value=".class public interface auto ansi abstract ErrorObject implements class Microsoft.Office.Interop.InfoPath.SemiTrust.Error" />
<TypeSignature Language="DocId" Value="T:Microsoft.Office.Interop.InfoPath.SemiTrust.ErrorObject" />
<TypeSignature Language="VB.NET" Value="Public Interface ErrorObject
Implements Error" />
<TypeSignature Language="C++ CLI" Value="public interface class ErrorObject : Microsoft::Office::Interop::InfoPath::SemiTrust::Error" />
<TypeSignature Language="F#" Value="type ErrorObject = interface
 interface Error" />
<AssemblyInfo>
<AssemblyName>Microsoft.Office.Interop.InfoPath.SemiTrust</AssemblyName>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Interfaces>
<Interface>
<InterfaceName>Microsoft.Office.Interop.InfoPath.SemiTrust.Error</InterfaceName>
</Interface>
</Interfaces>
<Attributes>
<Attribute>
<AttributeName>System.Runtime.InteropServices.CoClass(typeof(Microsoft.Office.Interop.InfoPath.SemiTrust.ErrorObjectWrapper))</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.Runtime.InteropServices.Guid("096cd577-0786-11d1-95fa-0080c78ee3bb")</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Represents an error in a Microsoft InfoPath form.</summary>
<remarks>
<para>This type is a wrapper for a coclass that is required by managed code for COM interoperability. Use this type to access the members of the COM interface implemented by this coclass. For information about the COM interface, including a link to descriptions of its members, see<see cref="T:Microsoft.Office.Interop.InfoPath.SemiTrust.Error" />.</para>
<para>Each <b>Error</b> object in InfoPath is each associated with an XML Document Object Model (DOM) node from a form's underlying XML document. When data validation fails for a particular XML DOM node, InfoPath creates an <b>Error</b> object and places it in the <see cref="T:Microsoft.Office.Interop.InfoPath.SemiTrust.ErrorsCollection" /> collection.</para>
<para>There are three types of data validation errors that can occur in an InfoPath form:</para>
<list type="bullet">
<item>
<description>SCHEMA_VALIDATION Data validation failed as a result of an XML Schema–defined constraint.</description>
</item>
<item>
<description>SYSTEM_GENERATED Data validation failed as a result of constraints defined in the form definition (.xsf) file or as a result of form code calling the <see cref="M:Microsoft.Office.Interop.InfoPath.SemiTrust.DataDOMEvent.ReportError(System.Object,System.String,System.Boolean,System.String,System.Int32,System.String)" /> method of <see cref="T:Microsoft.Office.Interop.InfoPath.SemiTrust.DataDOMEventObject" /> object.</description>
</item>
<item>
<description>USER_SPECIFIED Data validation failed as a result of a custom scripting error using the <see cref="M:Microsoft.Office.Interop.InfoPath.SemiTrust.Errors.Add(System.Object,System.String,System.String,System.String,System.Int32,System.String)" /> method of the <b>Errors</b> collection.</description>
</item>
</list>
<para>
<b>Note</b>: The <see cref="P:Microsoft.Office.Interop.InfoPath.SemiTrust.Error.ErrorType" /> property can be used to determine the type of data validation error that has occurred.</para>
<para />
</remarks>
<example>
<para>In the following example, the <b>Error</b> object is accessed using indexing in the <b>Errors</b> collection.</para>
<code><span class="label">Error</span> er = thisXDocument.Errors[0];</code>
</example>
</Docs>
<Members />
</Type>