-
Notifications
You must be signed in to change notification settings - Fork 7
/
ErrorsCollection.xml
45 lines (45 loc) · 3.47 KB
/
ErrorsCollection.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
<Type Name="ErrorsCollection" FullName="Microsoft.Office.Interop.InfoPath.ErrorsCollection">
<TypeSignature Language="C#" Value="public interface ErrorsCollection : Microsoft.Office.Interop.InfoPath.Errors" />
<TypeSignature Language="ILAsm" Value=".class public interface auto ansi abstract ErrorsCollection implements class Microsoft.Office.Interop.InfoPath.Errors" />
<TypeSignature Language="DocId" Value="T:Microsoft.Office.Interop.InfoPath.ErrorsCollection" />
<TypeSignature Language="VB.NET" Value="Public Interface ErrorsCollection
Implements Errors" />
<TypeSignature Language="C++ CLI" Value="public interface class ErrorsCollection : Microsoft::Office::Interop::InfoPath::Errors" />
<TypeSignature Language="F#" Value="type ErrorsCollection = interface
 interface Errors" />
<AssemblyInfo>
<AssemblyName>Microsoft.Office.Interop.InfoPath</AssemblyName>
<AssemblyVersion>15.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Interfaces>
<Interface>
<InterfaceName>Microsoft.Office.Interop.InfoPath.Errors</InterfaceName>
</Interface>
</Interfaces>
<Attributes>
<Attribute>
<AttributeName>System.Runtime.InteropServices.CoClass(typeof(Microsoft.Office.Interop.InfoPath.ErrorsCollectionClass))</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.Runtime.InteropServices.Guid("096CD578-0786-11D1-95FA-0080C78EE3BB")</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Contains an <see cref="T:Microsoft.Office.Interop.InfoPath.ErrorObject" /> object for each error within a Microsoft InfoPath form.</summary>
<remarks>
<para>This type is a wrapper for a COM interface implemented by a coclass that is required by managed code for COM interoperability. To access the members specified by this interface, use the type that wraps the coclass that implements this interface. For information about that type, including usage, remarks, and examples, see<see cref="T:Microsoft.Office.Interop.InfoPath.Errors" />.</para>
<para>The <b>Errors</b> collection provides properties and methods for adding, deleting, and gaining access to the <b>Error</b> objects that it contains.</para>
<para>In addition to managing the errors generated by InfoPath, the <b>Errors</b> collection can also be used to create custom errors using the <see cref="M:Microsoft.Office.Interop.InfoPath.Errors.Add(System.Object,System.String,System.String,System.String,System.Int32,System.String)" /> method.</para>
<para>
<b>Note</b>: Custom errors can also be created using the <see cref="M:Microsoft.Office.Interop.InfoPath.DataDOMEvent.ReportError(System.Object,System.String,System.Boolean,System.String,System.Int32,System.String)" /> method of the <see cref="T:Microsoft.Office.Interop.InfoPath.DataDOMEventObject" /> object.</para>
<para />
</remarks>
<example>
<code>//Add an error to the node
IXMLDOMDocument myDOM = thisXDocument.DOM;
IXMLDOMNode myNode = myDOM.selectSingleNode("my:myFields/my:aGroup/my:field1");
thisXDocument.<span class="label">Errors</span>.Add(myNode,"condition","short","detail",102057,"modeless");</code>
<para>The <b>Errors</b> collection is accessed through the <see cref="P:Microsoft.Office.Interop.InfoPath._XDocument2.Errors" /> property of the <see cref="T:Microsoft.Office.Interop.InfoPath.XDocument" /> object.</para>
<code><span class="label">ErrorsCollection</span> err = thisXDocument.Errors;</code>
</example>
</Docs>
<Members />
</Type>