Partilhar via


SPWebService.EnableHostHeaderSiteBasedSchemeSelection Property

Gets or sets a value that indicates whether the host header site scheme selection is enabled.

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

Syntax

'Declaration
Public Property EnableHostHeaderSiteBasedSchemeSelection As Boolean
    Get
    Set
'Usage
Dim instance As SPWebService
Dim value As Boolean

value = instance.EnableHostHeaderSiteBasedSchemeSelection

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

Property Value

Type: System.Boolean
true if the host header site scheme selection is enabled; false if the Web application default zone response URL scheme is used.

Exceptions

Exception Condition
UnauthorizedAccessException

The current user is not an administrator in the server farm.

See Also

Reference

SPWebService Class

SPWebService Members

Microsoft.SharePoint.Administration Namespace