Partilhar via


SPVirtualServer.WebApplication Property

NOTE: This API is now obsolete.

Obsolete. Gets the Web application associated with 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 WebApplication As SPWebApplication
    Get
'Usage
Dim instance As SPVirtualServer
Dim value As SPWebApplication

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

Property Value

Type: Microsoft.SharePoint.Administration.SPWebApplication
An SPWebApplication object.

See Also

Reference

SPVirtualServer Class

SPVirtualServer Members

Microsoft.SharePoint.Administration Namespace