SPGlobalAdmin.UseHostHeaderAsSiteName Property

NOTE: This API is now obsolete.

Use the HostHeaderIsSiteName property of the SPSite class to indicate whether the host header is used to uniquely identify the site collection instead. (In Windows SharePoint Services 2.0, the UseHostHeaderAsSiteName property got a Boolean value that indicated whether the host header was used as the name for the site collection on the virtual server, and is maintained for backward compatibility.)

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<ObsoleteAttribute("Use Microsoft.SharePoint.SPSite.HostHeaderIsSiteName instead.",  _
    False)> _
Public ReadOnly Property UseHostHeaderAsSiteName As Boolean
    Get
'Usage
Dim instance As SPGlobalAdmin
Dim value As Boolean

value = instance.UseHostHeaderAsSiteName
[ObsoleteAttribute("Use Microsoft.SharePoint.SPSite.HostHeaderIsSiteName instead.", 
    false)]
public bool UseHostHeaderAsSiteName { get; }

Property Value

Type: System.Boolean
This value always equals false.

See Also

Reference

SPGlobalAdmin Class

SPGlobalAdmin Members

Microsoft.SharePoint.Administration Namespace