Application Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the InfoPath application.
public interface class Application : Microsoft::Office::Interop::InfoPath::SemiTrust::_Application2
[System.Runtime.InteropServices.Guid("096cd6bb-0786-11d1-95fa-0080c78ee3bb")]
public interface Application : Microsoft.Office.Interop.InfoPath.SemiTrust._Application2
type Application = interface
interface _Application2
interface _Application
Public Interface Application
Implements _Application2
- Attributes
- Implements
Remarks
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_Application2.
Using the members of the _Application2 interface provides compatibility with InfoPath 2003. To use new members that were added to the Application object model in InfoPath 2010 such as the CacheSolution(String) method, you must cast the Application object to the _Application3 type. For more information, see How to: Use Object Model Members That Are Not Compatible with InfoPath 2003.
The Application object includes properties and methods that return references to the high-level objects of the InfoPath object model. For example, the XDocuments property returns a reference to a collection of XDocument objects.
The Application object is the top-level object in the InfoPath object model, and it provides a number of properties and methods that can be used to access lower-level collections and objects in the object model, and to perform a variety of general purpose functions.
Properties
ActiveWindow |
Gets a reference to a WindowObject object that represents the currently active window. (Inherited from _Application2) |
LanguageSettings |
Gets a reference to the Microsoft Office LanguageSettings. (Inherited from _Application2) |
MachineOnlineState |
Gets the current connection state of the client computer. (Inherited from _Application2) |
Name |
Gets the name of the InfoPath application. (Inherited from _Application2) |
UsableHeight |
Gets the available screen height, the maximum number of points to which you can set the height of an InfoPath document window. (Inherited from _Application2) |
UsableWidth |
Gets the available screen width, the maximum number of points to which you can set the width of an InfoPath document window. (Inherited from _Application2) |
User |
Gets a reference to the UserObject object. (Inherited from _Application2) |
Version |
Gets the InfoPath version number. (Inherited from _Application2) |
Windows |
Gets a reference to the WindowsCollection collection. (Inherited from _Application2) |
XDocuments |
Gets a reference to the XDocuments collection. (Inherited from _Application2) |
Methods
CacheSolution(String) |
Examines the form template in the cache and, if necessary, updates it from the published location of the form template. (Inherited from _Application2) |
FormatString(Object, String, String) |
Formats the specified string or XML node according to the specified category and options parameters. (Inherited from _Application2) |
IsDestinationReachable(String) |
Gets a value indicating whether the specified Uniform Resource Locator (URL), universal naming convention (UNC) path, or IP address of the destination computer can be connected to from the client computer. (Inherited from _Application2) |
NewADODBConnection() |
Creates and gets a reference to an empty ActiveX Data Objects (ADO) Connection object. (Inherited from _Application2) |
NewADODBRecordset() |
Creates and gets a reference to an empty ActiveX Data Objects (ADO) Recordset object. (Inherited from _Application2) |
Quit(Boolean) |
Quits the InfoPath application. (Inherited from _Application2) |
RegisterSolution(String, String) |
Installs the specified form template. (Inherited from _Application2) |
UnregisterSolution(String) |
Uninstalls the specified form template. (Inherited from _Application2) |