Share via


SPViewCollection.Item Property (Guid)

Gets the view object with the specified GUID from the collection.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public ReadOnly Property Item ( _
    guid As Guid _
) As SPView
    Get
'Usage
Dim instance As SPViewCollection
Dim guid As Guid
Dim value As SPView

value = instance.Item(guid)
public SPView this[
    Guid guid
] { get; }

Parameters

  • guid
    Type: System.Guid

    A GUID that identifies the view.

Property Value

Type: Microsoft.SharePoint.SPView
An SPView object that represents the view.

Remarks

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

See Also

Reference

SPViewCollection Class

SPViewCollection Members

Item Overload

Microsoft.SharePoint Namespace