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
list
Type: Microsoft.SharePoint.SPListAn SPList object that represents the list.
query
Type: Microsoft.SharePoint.SPQueryAn SPQuery object that represents the query.
strViewName
Type: System.StringA string that contains the GUID of the view.