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

ClientObjectExtensions.EnsureProperty Method

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

Ensures that particular property is loaded on the Microsoft.SharePoint.Client.ClientObject and immediately returns this property

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

Syntax

public static TResult EnsureProperty<T, TResult>(this T clientObject, Expression<Func<T, TResult>> propertySelector) where T : ClientObject

Parameters

clientObject

  Type: T
   Ensures that particular property is loaded on the Microsoft.SharePoint.Client.ClientObject and immediately returns this property

propertySelector

  Type: System.Linq.Expressions.Expression<System.Func<T, TResult>>
  Lamda expression containing the property to ensure (e.g. w => w.HasUniqueRoleAssignments)

Return Value

Type: TResult
Property value

See also

© 2018 Microsoft