Click or drag to resize

AccessQuery.FromObjectAllowNoConstraints 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 null 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: 25.1.421.0 (25.1.421.0)
Syntax
public static AccessQuery FromObjectAllowNoConstraints(
	IServiceProvider constrainedObject
)

Parameters

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

Return Value

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