次の方法で共有


ContextChangedEventArgs.ChangeType Property

Gets the type of context change that was performed when the ContextChanged event occurred.

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

Syntax

'Declaration
Public MustOverride ReadOnly Property ChangeType As String
    Get
'Usage
Dim instance As ContextChangedEventArgs
Dim value As String

value = instance.ChangeType
public abstract string ChangeType { get; }

Property Value

Type: System.String
The type of context change.

Remarks

The ChangeType property returns only the value "ContextNode" for context changes in Microsoft InfoPath 2010. 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 ChangeType property, because future versions of InfoPath may use different values for different context changes.

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.

This type or member can be accessed only from code running in forms opened in Microsoft InfoPath Filler.

See Also

Reference

ContextChangedEventArgs Class

ContextChangedEventArgs Members

Microsoft.Office.InfoPath Namespace