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: 19.1.398.0 (19.1.398.0)
public static AccessQuery FromObjectAllowNoConstraints(
	IServiceProvider 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