-
Notifications
You must be signed in to change notification settings - Fork 7
/
SolutionObject.xml
56 lines (54 loc) · 3.42 KB
/
SolutionObject.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
53
54
55
56
<Type Name="SolutionObject" FullName="Microsoft.Office.Interop.InfoPath.SolutionObject">
<TypeSignature Language="C#" Value="public interface SolutionObject : Microsoft.Office.Interop.InfoPath.Solution" />
<TypeSignature Language="ILAsm" Value=".class public interface auto ansi abstract SolutionObject implements class Microsoft.Office.Interop.InfoPath.Solution" />
<TypeSignature Language="DocId" Value="T:Microsoft.Office.Interop.InfoPath.SolutionObject" />
<TypeSignature Language="VB.NET" Value="Public Interface SolutionObject
Implements Solution" />
<TypeSignature Language="C++ CLI" Value="public interface class SolutionObject : Microsoft::Office::Interop::InfoPath::Solution" />
<TypeSignature Language="F#" Value="type SolutionObject = interface
 interface Solution" />
<AssemblyInfo>
<AssemblyName>Microsoft.Office.Interop.InfoPath</AssemblyName>
<AssemblyVersion>15.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Interfaces>
<Interface>
<InterfaceName>Microsoft.Office.Interop.InfoPath.Solution</InterfaceName>
</Interface>
</Interfaces>
<Attributes>
<Attribute>
<AttributeName>System.Runtime.InteropServices.CoClass(typeof(Microsoft.Office.Interop.InfoPath.SolutionObjectClass))</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.Runtime.InteropServices.Guid("096CD557-0786-11D1-95FA-0080C78EE3BB")</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Corresponds to a Microsoft Office InfoPath form template.</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.Solution2" />.</para>
<para>The <b>SolutionObject</b> object implements properties for getting information about a form template, including its version number, the Uniform Resource Locator (URL) of its extracted form files, the URL it was loaded from, and an XML Document Object Model (DOM) containing its form definition (.xsf) file. </para>
<para>The <b>SolutionObject</b> object is accessed through the <see cref="P:Microsoft.Office.Interop.InfoPath._XDocument2.Solution" /> property of the <see cref="T:Microsoft.Office.Interop.InfoPath.XDocument" /> object.</para>
<para />
</remarks>
<example>
<para>In the following example, a reference is set to the <b>Solution</b> object, then the code gets the name of the person who authored the form from the .xsf using the <see cref="P:Microsoft.Office.Interop.InfoPath.Solution2.DOM" /> property of the <b>Solution</b> object. A test is then made to determine if there is an author value, and the results are displayed in a message box.</para>
<code>public void SolutionInfo_OnClick(DocActionEvent e)
{
<span class="label">Solution</span> solution = thisXDocument.<span class="label">Solution</span>;
string solutionVersion = solution.Version;
string authorText;
IXMLDOMNode author = solution.DOM.selectSingleNode("xsf:xDocumentClass/@author");
if (author != null)
{
authorText = author.text;
}
else
{
authorText = "Author not available.";
}
thisXDocument.UI.Alert("Version: " + solutionVersion + "\nAuthor: " + authorText);
}</code>
</example>
</Docs>
<Members />
</Type>