次の方法で共有


SPWebCollection.Item property (String)

Gets the element with the specified site-relative URL from the collection.

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

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    name As String _
) As SPWeb
    Get
'Usage
Dim instance As SPWebCollection
Dim name As String
Dim value As SPWeb

value = instance(name)
public SPWeb this[
    string name
] { get; }

Parameters

  • name
    Type: System.String

    A string that contains the site-relative URL.

Property value

Type: Microsoft.SharePoint.SPWeb
An SPWeb object that represents the website.

Remarks

In C#, this property is an indexer for the SPWebCollection class.

See also

Reference

SPWebCollection class

SPWebCollection members

Item overload

Microsoft.SharePoint namespace