Method CreateChild
CreateChild(int, PasswordMatchItem?)
Creates a child context that extends this context by the given number of matched characters.
Declaration
public PasswordMatchContext CreateChild(int length, PasswordMatchItem? matchItem)
Parameters
| Type | Name | Description |
|---|---|---|
| int | length | The number of characters matched, starting at the current position. |
| PasswordMatchItem | matchItem | The item that was matched, or null if the characters do not represent a matched item (such as a separator). |
Returns
| Type | Description |
|---|---|
| PasswordMatchContext |
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException | Length is negative or extends past the end of the password. |