DocContextChangeEvent.Type 属性

定义

获取触发事件时 OnContextChange 发生的上下文更改事件的类型。

public:
 property System::String ^ Type { System::String ^ get(); };
public string Type { get; }
member this.Type : string
Public ReadOnly Property Type As String

属性值

注解

对于 Microsoft InfoPath 中的上下文更改, Type 属性仅返回值“ContextNode”。 但是,如果事件处理程序中的代码执行的操作依赖于当前功能,那么,仍应当将该代码设计为检查 Type 属性的值,因为 InfoPath 后续版本可能对不同的上下文更改使用不同的值。

重要提示:此成员只能由与当前打开的窗体在同一域中运行的表单访问,或者由已授予跨域权限的表单访问。

适用于