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

ListExtensions.GetViewByName Method

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

Gets a view by Name

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

Syntax

public static View GetViewByName(this List list, String name, params Expression<Func<View, Object>>[] expressions)

Parameters

list

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

name

  Type: System.String
  Name of the view

expressions

  Type: System.Linq.Expressions.Expression<System.Func<Microsoft.SharePoint.Client.View, System.Object>>[]
  List of lambda expressions of properties to load when retrieving the object

Return Value

Type: View
returns null if not found

See also

© 2018 Microsoft