PublishingWebCollection.Item Property (Int32)
Uses a zero-based integer index to get a PublishingWeb object from this PublishingWebCollection object.
Namespace: Microsoft.SharePoint.Publishing
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public ReadOnly Default Property Item ( _
index As Integer _
) As PublishingWeb
Get
'Usage
Dim instance As PublishingWebCollection
Dim index As Integer
Dim value As PublishingWeb
value = instance(index)
public PublishingWeb this[
int index
] { get; }
Parameters
index
Type: System.Int32A zero-based integer index used to retrieve a PublishingWeb object.
Property Value
Type: Microsoft.SharePoint.Publishing.PublishingWeb
The PublishingWeb object to which the specified index parameter refers.
Exceptions
Exception | Condition |
---|---|
[System.ArgumentOutOfRangeException] | Index is less than zero or greater than or equal to Count. |
Remarks
The value of the index parameter must be between 0 and Count-1, inclusive.
In Microsoft Visual C#, this property is the indexer for the PublishingWebCollection class.