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

ClientObjectExtensions.EnsureProperties Method

SharePoint Dev Documents|Last Updated: 5/22/2017
|
1 Contributor

Ensures that particular properties are loaded on the Microsoft.SharePoint.Client.ClientObject

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

Syntax

public static void EnsureProperties<T>(this T clientObject, params Expression<Func<T, Object>>[] propertySelector) where T : ClientObject

Parameters

clientObject

  Type: T
   Ensures that particular properties are loaded on the Microsoft.SharePoint.Client.ClientObject

propertySelector

  Type: System.Linq.Expressions.Expression<System.Func<T, System.Object>>[]
  Lamda expressions containing the properties to ensure (e.g. w => w.HasUniqueRoleAssignments, w => w.ServerRelativeUrl)

Return Value

Type: void
Property value

See also

© 2018 Microsoft