다음을 통해 공유


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)

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