Skip to main content
All docs
V25.1
  • .NET 8.0+

    IsGrantedExtensions.CanDelete(IRequestSecurityStrategy, IObjectSpace, Object) Method

    Checks whether the current user can delete the target object.

    Namespace: DevExpress.ExpressApp.Security

    Assembly: DevExpress.ExpressApp.Security.v25.1.dll

    Declaration

    public static bool CanDelete(
        this IRequestSecurityStrategy security,
        IObjectSpace objectSpace,
        object targetObject
    )

    Parameters

    Name Type Description
    security IRequestSecurityStrategy

    An object that specifies the application’s security strategy.

    objectSpace IObjectSpace

    An Object Space used to obtain data to calculate this security criterion.

    targetObject Object

    The target object to check.

    Returns

    Type Description
    Boolean

    true, if the current user can delete the target; otherwise, false.

    See Also