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.SemiTrust
Assembly:  Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.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. 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.

Important

This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

See also

Reference

DocContextChangeEvent interface

DocContextChangeEvent members

Microsoft.Office.Interop.InfoPath.SemiTrust namespace