TokenHelperHasInScope - метод
Checks whether the specified values exist within the given scope, considering extension rules if any.
Пространство имён: Tessa.TokensСборка: Tessa (в Tessa.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
public static bool HasInScope(
TokenScope? scope,
bool all = true,
Dictionary<string, string[]>? extensions = null,
params string[] values
)
Public Shared Function HasInScope (
scope As TokenScope,
Optional all As Boolean = true,
Optional extensions As Dictionary(Of String, String()) = Nothing,
ParamArray values As String()
) As Boolean
public:
static bool HasInScope(
TokenScope^ scope,
bool all = true,
Dictionary<String^, array<String^>^>^ extensions = nullptr,
... array<String^>^ values
)
static member HasInScope :
scope : TokenScope *
?all : bool *
?extensions : Dictionary<string, string[]> *
values : string[]
(* Defaults:
let _all = defaultArg all true
let _extensions = defaultArg extensions null
*)
-> bool
- 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,
.