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.2+447d1d590e6726b7881f750a0a0e42908f3e417e
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