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

ListExtensions.GetViewById Method

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

Gets a view by Id

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

Syntax

public static View GetViewById(this List list, Guid id, params Expression<Func<View, Object>>[] expressions)

Parameters

list

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

id

  Type: System.Guid
  Id to the view to extract

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