SPVirtualServerCollection.Item property
NOTE: This API is now obsolete.
取得集合中的指定索引處的虛擬伺服器物件。在 C# 中,這個屬性會是SPVirtualServerCollection類別的索引器。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<ObsoleteAttribute("The SPVirtualServerCollection class is deprecated. Use an SPWebApplicationCollection instead.", _
False)> _
Public ReadOnly Default Property Item ( _
index As Integer _
) As SPVirtualServer
Get
'用途
Dim instance As SPVirtualServerCollection
Dim index As Integer
Dim value As SPVirtualServer
value = instance(index)
[ObsoleteAttribute("The SPVirtualServerCollection class is deprecated. Use an SPWebApplicationCollection instead.",
false)]
public SPVirtualServer this[
int index
] { get; }
參數
index
Type: System.Int3232 位元整數,會指定索引。
Property value
Type: Microsoft.SharePoint.Administration.SPVirtualServer
SPVirtualServer 物件,代表虛擬伺服器。
請參閱
參照
SPVirtualServerCollection class