Skip to content

Commit 2a51f2d

Browse files
authored
1 parent c4c6363 commit 2a51f2d

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

articles/active-directory-b2c/predicates.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ manager: celestedg
99
ms.service: active-directory
1010
ms.workload: identity
1111
ms.topic: reference
12-
ms.date: 02/24/2020
12+
ms.date: 03/30/2020
1313
ms.author: mimart
1414
ms.subservice: B2C
1515
---
@@ -41,7 +41,7 @@ The **Predicate** element contains the following attributes:
4141
| Attribute | Required | Description |
4242
| --------- | -------- | ----------- |
4343
| Id | Yes | An identifier that's used for the predicate. Other elements can use this identifier in the policy. |
44-
| Method | Yes | The method type to use for validation. Possible values: **IsLengthRange**, **MatchesRegex**, **IncludesCharacters**, or **IsDateRange**. The **IsLengthRange** value checks whether the length of a string claim value is within the range of minimum and maximum parameters specified. The **MatchesRegex** value checks whether a string claim value matches a regular expression. The **IncludesCharacters** value checks whether a string claim value contains a character set. The **IsDateRange** value checks whether a date claim value is between a range of minimum and maximum parameters specified. |
44+
| Method | Yes | The method type to use for validation. Possible values: **IsLengthRange**, **MatchesRegex**, **IncludesCharacters**, or **IsDateRange**. |
4545
| HelpText | No | An error message for users if the check fails. This string can be localized using the [language customization](localization.md) |
4646

4747
The **Predicate** element contains the following elements:
@@ -63,6 +63,18 @@ The **Parameter** element contains the following attributes:
6363
| ------- | ----------- | ----------- |
6464
| Id | 1:1 | The identifier of the parameter. |
6565

66+
### Predicate methods
67+
68+
### IsLengthRange
69+
70+
The **IsLengthRange** value checks whether the length of a string claim value is within the range of minimum and maximum parameters specified. The Predicate element supports the following parameters:
71+
72+
| Parameter | Required | Description |
73+
| ------- | ----------- | ----------- |
74+
| Maximum | Yes | The minimum number of characters that must be entered. |
75+
| Minimum | Yes | The maximum number of characters that can be entered. |
76+
77+
6678
The following example shows a `IsLengthRange` method with the parameters `Minimum` and `Maximum` that specify the length range of the string:
6779

6880
```XML

0 commit comments

Comments
 (0)