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
)
Public Shared Function FromObjectAllowNoConstraints (
constrainedObject As IServiceProvider
) As AccessQuery
public:
static AccessQuery^ FromObjectAllowNoConstraints(
IServiceProvider^ constrainedObject
)
static member FromObjectAllowNoConstraints :
constrainedObject : IServiceProvider -> AccessQuery
Parameters
- constrainedObject
- Type: SystemIServiceProvider
The link or single object from which to construct a query.
Return Value
Type:
AccessQueryThe query, or
if the object does not have any constraints.
See Also