ISubmitToHostEventHandler.SubmitToHostEventHandler 方法
當 InfoPathEditor 物件裝載於自訂應用程式時,處理 SubmitToHostAdapterObject 物件的 Submit 方法產生的事件。
**命名空間:**Microsoft.Office.Interop.InfoPath
**組件:**Microsoft.Office.Interop.InfoPath (於 microsoft.office.interop.infopath.dll 中)
語法
'宣告
Function SubmitToHostEventHandler ( _
<InAttribute> sender As Object, _
<InAttribute> adapterName As String, _
<OutAttribute> ByRef errorMessage As String _
) As Integer
'用途
Dim instance As ISubmitToHostEventHandler
Dim sender As Object
Dim adapterName As String
Dim errorMessage As String
Dim returnValue As Integer
returnValue = instance.SubmitToHostEventHandler(sender, adapterName, errorMessage)
int SubmitToHostEventHandler (
[InAttribute] Object sender,
[InAttribute] string adapterName,
out string errorMessage
)
參數
- sender
傳送通知給主機的物件。
- adapterName
SubmitToHostAdapter 物件的名稱。
- errorMessage
傳回給 InfoPathEditor 物件的訊息。
傳回值
HRESULT
備註
當 InfoPathEditor 物件裝載於自訂應用程式時,可使用 ISubmitToHostEventHandler 介面的 SubmitToHostEventHandler 方法。如需詳細資訊,請參閱 InfoPath 開發人員的新功能 (英文) 中的<以控制項形式裝載的 InfoPath 編輯器>(InfoPath Editor Hosted as a Control) 一節。
請參閱
參考
ISubmitToHostEventHandler 介面
ISubmitToHostEventHandler 成員
Microsoft.Office.Interop.InfoPath 命名空間