Microsoft.Office.InfoPath Namespace

The types and members of the Microsoft.Office.InfoPath namespace provide a core set of functionality for creating custom business logic in Microsoft Office InfoPath 2007 form templates. When deployed to Microsoft Office Forms Server 2007 or to an appropriately configured document library in Office SharePoint Server 2007, business logic created using this object model will run in both a Web browser and in Office InfoPath 2007. Optionally, you can write business logic that uses an additional level of functionality available from this object model that will run only in form templates opened for editing in Office InfoPath 2007.

For information on using the members of this namespace, see Developing InfoPath Managed Code Form Templates. For information on the differences between the object models provided by the Microsoft.Office.InfoPath and Microsoft.Office.Interop.InfoPath.SemiTrust namespaces, see Understanding InfoPath 2007 Object Models and Development Environments.

Classes

  Class Description
Public class AdoQueryConnection Represents a connection for retrieving data from a Microsoft Access or Microsoft SQL Server database.
Public class AdoSubmitConnection Represents a connection for submitting data to a Microsoft Access or Microsoft SQL Server database.
Public class Application Represents the Microsoft Office InfoPath 2007 application.
Public class ButtonEvent Implements the event associated with a Button control on a form.
Public class Certificate Represents the X.509 digital certificate that has been used to create a signature.
Public class ClickedEventArgs Provides data for the Clicked event.
Public class ContextChangedEventArgs Provides data for the ContextChanged event.
Public class ControlEvents Represents the collection of all event handlers for the Clicked events raised by the Button controls on a form.
Public class DataConnection Represents the base class from which each specific type of data connection is derived.
Public class DataConnectionCollection Contains a data connection object corresponding to each data connection used within a form template.
Public class DataSource Represents a data source in a form template.
Public class DataSourceCollection Contains a collection of DataSource objects that represent the data sources used within a form.
Public class EmailSubmitConnection Represents the data connection for submitting form information in e-mail.
Public class Environment Provides properties to determine what runtime environment was used to open the form template.
Public class EventManager Used to initialize and bind event handlers in the InternalStartup method of a form template.
Public class FileQueryConnection Represents a connection for retrieving data from an XML file.
Public class FileSubmitConnection Represents a connection to submit form information to a Microsoft Windows SharePoint Services server or other server that supports DAV connections.
Public class FormError Represents an error in the FormErrorCollection of a form.
Public class FormErrorCollection Contains a FormError object for each error in the current form.
Public class FormEvents Implements all of the events that a form template itself can raise.
Public class FormTemplate Represents a form template.
Public class HtmlTaskPane Represents the custom task pane that is associated the current window in which a form is being edited.
Public class LoadingEventArgs Provides data for the Loading event.
Public class MailEnvelope Represents a custom e-mail message for sending the current form as an attachment.
Public class ManagedObjectWrapper  
Public class MergeEventArgs Provides data for the Merge event.
Public class Permission Provides access to the UserPermissionCollection and permission settings that can be applied to a form.
Public class SaveCancelEventArgs Provides data to the CancelableArgs property of the SaveEventArgs object.
Public class SaveEventArgs Provides data for the Save event of a form.
Public class SharepointListQueryConnection Represents a connection for retrieving data from a SharePoint list or document library.
Public class Signature Represents a digital signature that has been added to a form or a set of signed data in a form.
Public class SignatureCollection Contains a Signature object for each digital signature applied to a form or to a set of signable data represented by a SignedDataBlock object.
Public class SignedDataBlock Represents a set of data in a form that can be signed.
Public class SignedDataBlockCollection The collection of SignedDataBlock objects that correspond to the sets of signable data in the form template as defined in the form definition file (.xsf).
Public class SignEventArgs Provides data for the Sign event of a form.
Public class SubmitEventArgs Provides data for the Submit event.
Public class SubmitToHostConnection Represents a connection for submitting data to a hosting environment.
Public class TaskPane Represents the task pane that is associated with the current window in Microsoft Office InfoPath 2007.
Public class TaskPaneCollection Contains a collection of TaskPane objects that represent the task panes associated with a window in Microsoft Office InfoPath 2007.
Public class User Provides properties and a method that can be used to return information about the current user.
Public class UserPermission Represents a member of the current form's UserPermissionCollection collection.
Public class UserPermissionCollection Represents the collection of UserPermission objects associated with the current form.
Public class VersionUpgradeEventArgs Provides data for the VersionUpgrade event of a form.
Public class View Represents a view within a form.
Public class ViewInfo Contains descriptive information about a view within a form.
Public class ViewInfoCollection Contains a ViewInfo object for each view within a form.
Public class ViewSwitchedEventArgs Provides data for the ViewSwitched event of a form.
Public class WebServiceConnection Represents a connection to an XML Web service.
Public class Window Represents a window that is used in the Microsoft Office InfoPath 2007 application.
Public class WindowCollection Contains a Window object for each InfoPath window that is currently open.
Public class XmlChangingEventArgs Provides data for the Changing event.
Public class XmlEvent Implements the events raised by changes to the data in the underlying XML document of a form instance.
Public class XmlEventArgs Provides data for the Changed event.
Public class XmlEvents The collection of all XmlEvent events for a form template.
Public class XmlForm Represents the underlying XML document of a form.
Public class XmlFormCancelEventArgs Provides data for the custom message that is displayed when canceling events raised by the form and its underlying XML document.
Public class XmlFormCollection Contains an XmlForm object for each form that is currently open.
Public class XmlFormHostItem This class is a wrapper for the XmlForm class.
Public class XmlValidatingEventArgs Provides data for the Validating event of a field or group.
Public class XPathTypedValue Implements the object returned by certain property values of the EmailSubmitConnection and FileSubmitConnection classes to get and set those values.

Delegates

  Delegate Description
Public delegate ClickedEventHandler Represents the method that will handle the Clicked event of a Button control.
Public delegate ContextChangedEventHandler Represents the method that will handle the ContextChanged event of a form.
Public delegate LoadingEventHandler Represents the method that will handle the Loading event of a form.
Public delegate MergeEventHandler Represents the method that will handle the Merge event of a form.
Public delegate SaveEventHandler Represents the method that will handle the Save event of a form.
Public delegate SignEventHandler Represents the method that will handle the Sign event of a form.
Public delegate SubmitEventHandler Represents the method that will handle the Submit event of a form.
Public delegate VersionUpgradeEventHandler Represents the method that will handle the VersionUpgrade event of a form.
Public delegate ViewSwitchedEventHandler Represents the method that will handle the ViewSwitched event of a form.
Public delegate XmlChangedEventHandler Represents the method that will handle the Changed event of a field or group.
Public delegate XmlChangingEventHandler Represents the method that will handle the Changing event of a form.
Public delegate XmlValidatingEventHandler Represents the method that will handle the Validating event of a field or group.

Enumerations

  Enumeration Description
Public enumeration ActionType Specifies the editing command to be performed by the ExecuteAction method.
Public enumeration CertificateStatus Specifies the status of a digital certificate.
Public enumeration EmailAttachmentType Specifies the type of form files attached to an e-mail message.
Public enumeration ErrorMode Specifies whether the custom error will be displayed in a modal dialog box or in modeless context within the control that is the source of the error.
Public enumeration ExportFormat Specifies the file format to use when exporting a view.
Public enumeration FormErrorType Specifies the error type of a FormError object in the FormErrorCollection of an InfoPath form.
Public enumeration MachineState Specifies the state of the connection for the client computer.
Public enumeration PermissionType Represents a user's permissions.
Public enumeration SignatureRelation Specifies the relationship defined for how multiple signatures can be applied to a set of data that can be signed.
Public enumeration SignatureStatus Specifies the status of a digital signature.
Public enumeration TaskPaneType Specifies the type of task pane that is currently selected.
Public enumeration WindowState Specifies the state of the InfoPath application window that is represented by a Window object.
Public enumeration WindowType Specifies the type of InfoPath application window.
Public enumeration XmlFormOpenMode Specifies how a form will be opened.
Public enumeration XmlOperation Indicates what type of operation occurred during a Changed, Changing, or Validating event.