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)

Syntax

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

value = instance(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