Share via


SPWebApplicationBuilder.HostHeader property

Gets or sets an optional Internet Information Services (IIS) host header for the new IIS Web site of the Web application.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property HostHeader As String
    Get
    Set
'Usage
Dim instance As SPWebApplicationBuilder
Dim value As String

value = instance.HostHeader

instance.HostHeader = value
public string HostHeader { get; set; }

Property value

Type: System.String
A string that contains the host header. The default value is null because IIS is configured to serve all unassigned IP addresses by default.

See also

Reference

SPWebApplicationBuilder class

SPWebApplicationBuilder members

Microsoft.SharePoint.Administration namespace