Edit

Share via


Application Class

Definition

Represents the InfoPath application.

public ref class Application abstract
public abstract class Application
type Application = class
Public MustInherit Class Application
Inheritance
Application

Remarks

The Application object includes properties and methods that return references to the high-level objects of the InfoPath object model. For example, the XmlForms property returns a reference to a collection of XmlForm 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.

Constructors

Application()

Properties

ActiveWindow

Gets a reference to a Window object that represents the currently active window.

ComAddIns

Gets a Microsoft.Office.Core.COMAddIns object containing information about the COM Add-ins registered for the current InfoPath application.

Environment

Gets a reference to an Environment object that can be used to determine which runtime environment (InfoPath, Web browser, or mobile browser) the form is running in.

LanguageSettings

Gets a reference to the Microsoft.Office.Core.LanguageSettings object.

MachineOnlineState

Gets the current connection state of the client computer.

Name

Gets the name of the InfoPath application.

UsableHeight

Gets the available screen height, the maximum number of points to which you can set the height of an InfoPath document window.

UsableWidth

Gets the available screen width, the maximum number of points to which you can set the width of an InfoPath document window.

User

Gets a reference to the User object.

Version

Gets the InfoPath version number.

Windows

Gets a reference to the WindowCollection.

XmlForms

Gets a reference to the XmlFormCollection.

Methods

CacheFormTemplate(String)

Examines the form template in the cache and, if necessary, updates it from the published location of the form template.

GetFormTemplateLocation(String)

Gets the Uniform Resource Locator (URL) or universal naming convention (UNC) location of a form template from the local cache ID.

IsDestinationReachable(String)

Gets a value indicating whether a connection can be made to the destination computer using the specified Uniform Resource Locator (URL), universal naming convention (UNC) path, or IP address.

Quit()

Quits the InfoPath application without prompting users to save open forms.

Quit(Boolean)

Quits the InfoPath application with the option to prompt users to save forms that are being closed.

RegisterFormTemplate(String)

Installs the specified form template.

RegisterFormTemplate(String, String)

Installs the specified form template with the option to overwrite the previous registration record for the form template.

UnregisterFormTemplate(String)

Uninstalls the specified form template.

Applies to