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

ClientObjectExtensions.IsObjectPropertyInstantiated Method

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

Check if a property is instantiated on a object

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

Syntax

public static bool IsObjectPropertyInstantiated<T>(this T clientObject, Expression<Func<T, Object>> propertySelector) where T : ClientObject

Parameters

clientObject

  Type: T
  Object to operate on

propertySelector

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

Return Value

Type: bool
True if the property is instantiated, false otherwise

See also

© 2018 Microsoft