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)
Syntaxpublic 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: System.IServiceProvider
The link or single object from which to construct a query.
Return Value
Type:
AccessQueryThe query, or
null if the object does not have any constraints.
See Also