SPSiteCollection.Item property (String)
取得SPSite物件在集合中指定的伺服器相對 URL。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public ReadOnly Default Property Item ( _
strSiteName As String _
) As SPSite
Get
'用途
Dim instance As SPSiteCollection
Dim strSiteName As String
Dim value As SPSite
value = instance(strSiteName)
public SPSite this[
string strSiteName
] { get; }
參數
strSiteName
Type: System.Stringstring包含站台物件 (例如,a 或網站/網站名稱) 的伺服器相對 URL。
Property value
Type: Microsoft.SharePoint.SPSite
SPSite 物件。