Click or drag to resize

CargoFunctionsHoldsT Method

This is preliminary documentation and is subject to change.

Determines whether the list-typed field contains a certain value. (See mw:Extension:Cargo/Querying data#The "HOLDS" command.)

Namespace: WikiClientLibrary.Cargo.Linq
Assembly: WikiClientLibrary.Cargo (in WikiClientLibrary.Cargo.dll) Version: 0.9.0-int.3+0a73c45f0c78941900e328c6c6b819597b665e00
Syntax
public static bool Holds<T>(
	IEnumerable<T> cargoList,
	T element
)

Parameters

cargoList  IEnumerableT
Cargo table field expression of type list.
element  T
the matching element.

Type Parameters

T
element name.

Return Value

Boolean
whether the list contains the matching element.
See Also