共用方式為


SPViewCollection.Item Property (String)

Gets the view object with the specified name 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 ( _
    strTitle As String _
) As SPView
    Get
'Usage
Dim instance As SPViewCollection
Dim strTitle As String
Dim value As SPView

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

Parameters

  • strTitle
    Type: System.String

    A string that contains the name of the view.

Property Value

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

See Also

Reference

SPViewCollection Class

SPViewCollection Members

Item Overload

Microsoft.SharePoint Namespace