共用方式為


SPVirtualServer.State property

NOTE: This API is now obsolete.

已過時。取得SPVirtualServerState值,代表虛擬伺服器的狀態。

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

Syntax

'宣告
<ObsoleteAttribute("Use SPWebApplication or SPIisSettings instead.",  _
    False)> _
Public ReadOnly Property State As SPVirtualServerState
    Get
'用途
Dim instance As SPVirtualServer
Dim value As SPVirtualServerState

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

Property value

Type: Microsoft.SharePoint.Administration.SPVirtualServerState
指定狀態SPVirtualServerState值。

請參閱

參照

SPVirtualServer class

SPVirtualServer members

Microsoft.SharePoint.Administration namespace