Click or drag to resize

AccessQueryFromObjectAllowNoConstraints Method

Constructs an access query from the constraints applied to a given object or link. The specified object is allowed to not have any constraints, in which case will be returned. This method is identical to FromObject(IServiceProvider) except that it will not throw when the object does not provide the IAccessConstraintsService.

Namespace:  AGI.Foundation.Access
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public static AccessQuery FromObjectAllowNoConstraints(
	IServiceProvider constrainedObject
)

Parameters

constrainedObject
Type: SystemIServiceProvider
The link or single object from which to construct a query.

Return Value

Type: AccessQuery
The query, or if the object does not have any constraints.
See Also