HostName Property

InfoPath Developer Reference

Gets or sets the name of the hosting application. Read/write

Version Information
 Version Added:  InfoPath 2007

Syntax

expression.HostName(pbstrHostName)

expression   An expression that returns an InfoPathEditor object.

Parameters

Name Required/Optional Data Type Description
pbstrHostName Required String The name of the host application.

Return Value
[HRESULT]

Remarks

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

The HostName property of the InfoPathEditor object is not intended to be used in custom form code. It is available for use when the InfoPathEditor object is hosted in a custom COM-based application. For more information, see Hosting InfoPath as an XML Editor in Another Application and What's New for InfoPath Developers.

This object or member is used for extending the InfoPath application and is not intended to be used directly from your form code.

See Also