Share 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)

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