共用方式為


SPVirtualServer.WebApplication property

NOTE: This API is now obsolete.

已過時。取得與虛擬伺服器相關聯的 Web 應用程式。

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
<ObsoleteAttribute("Use SPWebApplication or SPIisSettings instead.",  _
    False)> _
Public ReadOnly Property WebApplication As SPWebApplication
    Get
'用途
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
SPWebApplication 物件。

請參閱

參照

SPVirtualServer class

SPVirtualServer members

Microsoft.SharePoint.Administration namespace