共用方式為


DocContextChangeEvent.Type 屬性

取得觸發 OnContextChange 事件時發生的內容變更事件類型。

**命名空間:**Microsoft.Office.Interop.InfoPath
**組件:**Microsoft.Office.Interop.InfoPath (於 microsoft.office.interop.infopath.dll 中)

語法

'宣告
<DispIdAttribute(2)> _
ReadOnly Property Type As String
'用途
Dim instance As DocContextChangeEvent
Dim value As String

value = instance.Type
[DispIdAttribute(2)] 
string Type { get; }

備註

在 Microsoft InfoPath 2003 Service Pack 1 中,Type 屬性只會傳回 "ContextNode" 值以表示內容變更。不過,如果事件處理常式中的程式碼根據目前的功能執行動作,則應該設計該程式碼檢查 Type 屬性的值,因為未來的 InfoPath 版本可能會對不同的內容變更使用不同值。

請參閱

參考

DocContextChangeEvent 介面
DocContextChangeEvent 成員
Microsoft.Office.Interop.InfoPath 命名空間