IEnumerableExtensionContainsGroupTSource Method
Indicates whether
values contains an item that has the
specified
Group identifier.
Namespace: FolkerKinzel.VCards.ExtensionsAssembly: FolkerKinzel.VCards (in FolkerKinzel.VCards.dll) Version: 8.0.1+a91cc3f0fd39aeb548e16006a60ca9dd10a304a2
public static bool ContainsGroup<TSource>(
this IEnumerable<TSource>? values,
string? group,
bool ignoreEmptyItems = true
)
where TSource : VCardProperty
<ExtensionAttribute>
Public Shared Function ContainsGroup(Of TSource As VCardProperty) (
values As IEnumerable(Of TSource),
group As String,
Optional ignoreEmptyItems As Boolean = true
) As Boolean
public:
[ExtensionAttribute]
generic<typename TSource>
where TSource : VCardProperty
static bool ContainsGroup(
IEnumerable<TSource>^ values,
String^ group,
bool ignoreEmptyItems = true
)
[<ExtensionAttribute>]
static member ContainsGroup :
values : IEnumerable<'TSource> *
group : string *
?ignoreEmptyItems : bool
(* Defaults:
let _ignoreEmptyItems = defaultArg ignoreEmptyItems true
*)
-> bool when 'TSource : VCardProperty
- values IEnumerableTSource
- The IEnumerableT of VCardProperty
objects to search. The collection may be null, empty, or may contain null
references.
- group String
- The Group identifier
to compare with.
- ignoreEmptyItems Boolean (Optional)
- Pass false to include empty items in the search.
("Empty" means that IsEmpty returns true.) null
values will always be ignored.
- TSource
- Generic type parameter that's constrained to be a class that's
derived from VCardProperty.
Booleantrue if an item with the
specified
Group identifier could be found in
values, otherwise
false.In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableTSource. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
The comparison of group identifiers is case-insensitive.