InfoPathEditor.HostName property

Gets or sets the name of the host application.

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

Syntax

'Declaration
Property HostName As String
    Get
    Set
'Usage
Dim instance As InfoPathEditor
Dim value As String

value = instance.HostName

instance.HostName = value
string HostName { get; set; }

Property value

Type: System.String
The name of the host application.

Remarks

The value of the HostName property is used in dialog boxes and error messages in place of the InfoPath product name.

For more information about the InfoPathEditor and the FormControl objects , see the MSDN article Hosting the InfoPath Form Editing Environment in a Custom Windows Form Application and the "The InfoPath Editor Hosted As a Control" section of What's New for InfoPath Developers.

See also

Reference

InfoPathEditor interface

InfoPathEditor members

Microsoft.Office.Interop.InfoPath namespace