次の方法で共有


SPSiteCollection.Item property (String)

Gets the SPSite object at the specified server-relative URL in the collection.

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

Syntax

'Declaration
Public ReadOnly Property Item ( _
    strSiteName As String _
) As SPSite
    Get
'Usage
Dim instance As SPSiteCollection
Dim strSiteName As String
Dim value As SPSite

value = instance.Item(strSiteName)
public SPSite this[
    string strSiteName
] { get; }

Parameters

  • strSiteName
    Type: System.String

    A string that contains the server-relative URL of the site object (for example, Site_Name or sites/Site_Name).

Property value

Type: Microsoft.SharePoint.SPSite
An SPSite object.

See also

Reference

SPSiteCollection class

SPSiteCollection members

Item overload

Microsoft.SharePoint.Administration namespace