TokenHelperHasInScope - метод

Checks whether the specified values exist within the given scope, considering extension rules if any.

Definition

Пространство имён: Tessa.Tokens
Сборка: Tessa (в Tessa.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
C#
public static bool HasInScope(
	TokenScope? scope,
	bool all = true,
	Dictionary<string, string[]>? extensions = null,
	params string[] values
)

Параметры

scope  TokenScope
A space-separated string representing the token scope.
all  Boolean  (Optional)
Indicates whether all specified values must be present in the scope.
extensions  DictionaryString, String  (Optional)
A dictionary containing scope extension rules, where the key is the value to search for within the scope and the corresponding value is the collection of scopes to be added if the key is found.
values  String
An array of strings representing the values to check within the scope.

Возвращаемое значение

Boolean
if the specified values exist in the scope according to the defined criteria; otherwise, .

См. также