Share via


InfoPathEventHandlerAttribute.DataObject property

Gets or sets the name of the data adapter that is the event source in an InfoPathEventHandlerAttribute attribute applied to an event handler for an OnAfterChange event.

Namespace:  Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly:  Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.dll)

Syntax

'Declaration
Public Property DataObject As String
    Get
    Set
'Usage
Dim instance As InfoPathEventHandlerAttribute
Dim value As String

value = instance.DataObject

instance.DataObject = value
public string DataObject { get; set; }

Property value

Type: System.String

Remarks

Important

To prevent errors in the specification of the InfoPathEventHandler attribute for an event handler, you should only use InfoPath user interface commands to add the stub for event handler code. For more information, see How to: Add an Event Handler Using the InfoPath 2003 Object Model.

See also

Reference

InfoPathEventHandlerAttribute class

InfoPathEventHandlerAttribute members

Microsoft.Office.Interop.InfoPath.SemiTrust namespace