共用方式為


SPGlobalAdmin.UseHostHeaderAsSiteName property

NOTE: This API is now obsolete.

使用SPSite類別之HostHeaderIsSiteName屬性,指出是否主機標頭用來唯一地識別而網站集合。(在Windows SharePoint Services 2.0, UseHostHeaderAsSiteName屬性 got Boolean 值,以指定的主機標頭所做的虛擬伺服器上,網站集合的名稱,並維持回溯相容性)。

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

Syntax

'宣告
<ObsoleteAttribute("Use Microsoft.SharePoint.SPSite.HostHeaderIsSiteName instead.",  _
    False)> _
Public ReadOnly Property UseHostHeaderAsSiteName As Boolean
    Get
'用途
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
此值一定會等於false.

請參閱

參照

SPGlobalAdmin class

SPGlobalAdmin members

Microsoft.SharePoint.Administration namespace