Search Results for

    Show / Hide Table of Contents

    Class UserInUserRolesCondition

    Matches when one or all the user roles specified in UserRoleIds are assigned to the user retrieved from the path UserIdPath

    Inheritance
    object
    BusinessRuleCondition
    UserInUserRolesCondition
    Inherited Members
    BusinessRuleCondition.TraceRefId
    BusinessRuleCondition.Names
    BusinessRuleCondition.Description
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: System.Dynamic.ExpandoObject
    Syntax
    [GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v13.0.0.0))")]
    public class UserInUserRolesCondition : BusinessRuleCondition

    Properties

    MatchMode

    Decide if all the user roles must be assigned to the user or only one of them.

    Declaration
    [JsonProperty("matchMode", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
    [JsonConverter(typeof(StringEnumConverter))]
    public ConditionMatchMode MatchMode { get; set; }
    Property Value
    ConditionMatchMode

    UserIdPath

    JSON path to the field containing the id of the user that needs to be checked.

    Declaration
    [JsonProperty("userIdPath", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
    public string UserIdPath { get; set; }
    Property Value
    string

    UserRoleIds

    A static list of user role ids that will checked: depending on MatchMode all the user roles or only one of them must be assigned to the user.

    Declaration
    [JsonProperty("userRoleIds", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
    public ICollection<string> UserRoleIds { get; set; }
    Property Value
    ICollection<string>

    Methods

    FromJson(string)

    Declaration
    public static UserInUserRolesCondition FromJson(string data)
    Parameters
    string data

    Returns
    UserInUserRolesCondition

    ToJson()

    Declaration
    public string ToJson()
    Returns
    string

    Back to top Generated by DocFX