共用方式為


SPSiteLookupInfo.HostHeaderIsSiteName Property

Gets or sets a Boolean value that specifies whether the host header is the name of the site collection.

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

Syntax

'Declaration
Public Property HostHeaderIsSiteName As Boolean
    Get
    Set
'Usage
Dim instance As SPSiteLookupInfo
Dim value As Boolean

value = instance.HostHeaderIsSiteName

instance.HostHeaderIsSiteName = value
public bool HostHeaderIsSiteName { get; set; }

Property Value

Type: System.Boolean
Boolean
true if the host header is the name of the site collection; otherwise, false.

See Also

Reference

SPSiteLookupInfo Class

SPSiteLookupInfo Members

Microsoft.SharePoint.Administration Namespace