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
index
Type: System.StringName property of the PublishingWeb to retrieve.
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.