Partager via


CompositeGlob.Create(IEnumerable<IMSBuildGlob>) Method

Definition

Creates an IMSBuildGlob that aggregates multiple other globs such that the resulting glob matches when any inner glob matches (disjunction).

public:
 static Microsoft::Build::Globbing::IMSBuildGlob ^ Create(System::Collections::Generic::IEnumerable<Microsoft::Build::Globbing::IMSBuildGlob ^> ^ globs);
public static Microsoft.Build.Globbing.IMSBuildGlob Create (System.Collections.Generic.IEnumerable<Microsoft.Build.Globbing.IMSBuildGlob> globs);
static member Create : seq<Microsoft.Build.Globbing.IMSBuildGlob> -> Microsoft.Build.Globbing.IMSBuildGlob
Public Shared Function Create (globs As IEnumerable(Of IMSBuildGlob)) As IMSBuildGlob

Parameters

globs
IEnumerable<IMSBuildGlob>

An enumeration of globs to compose.

Returns

The logical disjunction of the input globs.

Remarks

When globs contains no elements, a singleton glob is returned that never matches, regardless of input.

When globs contains one element, that single element is returned directly. This avoids allocating a redundant wrapper instance.

Applies to