Table of contents
TOC
Collapse the table of content
Expand the table of content

ListExtensions.CreateView Method

SharePoint Dev Documents|Last Updated: 6/19/2017
|
1 Contributor

Create view to existing list

Namespace:Microsoft.SharePoint.Client
Assembly: OfficeDevPnP.Core.dll

Syntax

public static View CreateView(this List list, String viewName, ViewType viewType, String[] viewFields, UInt32 rowLimit, Boolean setAsDefault, String query, Boolean personal = False, Boolean paged = False)

Parameters

list

  Type: Microsoft.SharePoint.Client.List
  List to process

viewName

  Type: System.String
  Name of the view

viewType

  Type: Microsoft.SharePoint.Client.ViewType
  Type of the view

viewFields

  Type: System.String[]
  Fields of the view

rowLimit

  Type: System.UInt32
  Row limit of the view

setAsDefault

  Type: System.Boolean
  Set as default view

(optional) query

  Type: System.String
  Query for view creation

(optional) personal

  Type: System.Boolean
  Personal View

(optional) paged

  Type: System.Boolean
  Paged view

Return Value

Type: View

See also

© 2018 Microsoft