Share via


DocContextChangeEvent.Type property

Gets the type of context change event that occurred when the OnContextChange event was triggered.

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

Syntax

'Declaration
ReadOnly Property Type As String
    Get
'Usage
Dim instance As DocContextChangeEvent
Dim value As String

value = instance.Type
string Type { get; }

Property value

Type: System.String

Remarks

The Type property returns only the value "ContextNode" for context changes in Microsoft InfoPath 2003 Service Pack 1. Nevertheless, if code in an event handler performs actions that depend on current functionality, that code should still be designed to check the value of the Type property, because future versions of InfoPath may use different values for different context changes.

See also

Reference

DocContextChangeEvent interface

DocContextChangeEvent members

Microsoft.Office.Interop.InfoPath namespace