SubmitToHostEventArgs-Klasse
Verwendet, um Informationen über das Senden an Host-Betrieb der gehostete InfoPath-Formularvorlage zurückzugeben.
Vererbungshierarchie
System.Object
System.EventArgs
Microsoft.Office.InfoPath.Server.Controls.SubmitToHostEventArgs
Namespace: Microsoft.Office.InfoPath.Server.Controls
Assembly: Microsoft.Office.InfoPath.Server (in Microsoft.Office.InfoPath.Server.dll)
Syntax
'Declaration
Public Class SubmitToHostEventArgs _
Inherits EventArgs
'Usage
Dim instance As SubmitToHostEventArgs
public class SubmitToHostEventArgs : EventArgs
Hinweise
Verwenden Sie das SubmitToHostConnection -Objekt aus dem Namespace Microsoft.Office.InfoPath Aktionen von Regeln oder andere deklarative Logik nicht unterstützt. Weitere Informationen zum Erstellen einer Datenverbindung SubmitToHostAdapter in eine InfoPath-Formularvorlage finden Sie unter Hosting the InfoPath Form Editing Environment in a Custom Web Form.
Beispiele
Im folgenden Beispiel werden die Eigenschaften des SubmitToHostEventArgs -Objekts zum Auffüllen von Textfeldern in der Webseite verwendet.
Protected Sub XmlFormView1_SubmitToHost(ByVal sender As Object, ByVal e As Microsoft.Office.InfoPath.Server.Controls.SubmitToHostEventArgs) Handles XmlFormView1.SubmitToHost
TextBox2.Text = e.AdapterName.ToString()
If e.ReturnStatus = True Then
TextBox3.Text = e.ReturnStatus.ToString()
Else
TextBox3.Text = e.ErrorMessage.ToString()
End If
End Sub
protected void XmlFormView1_SubmitToHost(object sender, SubmitToHostEventArgs e)
{
TextBox2.Text = e.AdapterName.ToString();
if (e.ReturnStatus = true)
{
TextBox3.Text = e.ReturnStatus.ToString();
}
else
{
TextBox3.Text = e.ErrorMessage.ToString();
}
}
Threadsicherheit
Alle öffentlichen static (Shared in Visual Basic) Member dieses Typs sind threadsicher. Die Threadsicherheit von Instanzmembern ist nicht gewährleistet.