Partilhar via


SPVirtualServer.HostName Property

NOTE: This API is now obsolete.

Obsolete. Gets the host name for the virtual server.

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

Syntax

'Declaration
<ObsoleteAttribute("Use SPWebApplication or SPIisSettings instead.",  _
    False)> _
Public ReadOnly Property HostName As String
    Get
'Usage
Dim instance As SPVirtualServer
Dim value As String

value = instance.HostName
[ObsoleteAttribute("Use SPWebApplication or SPIisSettings instead.", 
    false)]
public string HostName { get; }

Property Value

Type: System.String
A string that contains the host name.

See Also

Reference

SPVirtualServer Class

SPVirtualServer Members

Microsoft.SharePoint.Administration Namespace