SPListItemCollection.Init Method

Initializes the specified list, query, and view.

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

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.ProtectedMethod)> _
Protected Sub Init ( _
    list As SPList, _
    query As SPQuery, _
    strViewName As String _
)
'Usage
Dim list As SPList
Dim query As SPQuery
Dim strViewName As String

Me.Init(list, query, strViewName)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.ProtectedMethod)]
protected void Init(
    SPList list,
    SPQuery query,
    string strViewName
)

Parameters

  • strViewName
    Type: System.String

    A string that contains the GUID of the view.

See Also

Reference

SPListItemCollection Class

SPListItemCollection Members

Microsoft.SharePoint Namespace