PublishingWebCollection.Item Property (String)

Gets a PublishingWeb object from this PublishingWebCollection object using a string index.

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

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    index As String _
) As PublishingWeb
    Get
'Usage
Dim instance As PublishingWebCollection
Dim index As String
Dim value As PublishingWeb

value = instance(index)
public PublishingWeb this[
    string index
] { get; }

Parameters

Property Value

Type: Microsoft.SharePoint.Publishing.PublishingWeb
The PublishingWeb object with the specific name or a null reference (Nothing in Visual Basic) (Nothing in Visual Basic) if no such object exists.

Exceptions

Exception Condition
[System.ArgumentOutOfRangeException]

index parameter is invalid.

Remarks

In Microsoft Visual C#, this property is the indexer for the PublishingWebCollection class.

See Also

Reference

PublishingWebCollection Class

PublishingWebCollection Members

Item Overload

Microsoft.SharePoint.Publishing Namespace