Table of Contents

Class ContentRule

Namespace
MonoGame.Framework.Content.Pipeline.Builder
Assembly
MonoGame.Framework.Content.Pipeline.dll

A rule by which ContentCollection includes or excludes the files.

public abstract class ContentRule
Inheritance
ContentRule
Derived
Inherited Members

Properties

Pattern

A pattern passed from ContentCollection for using in IsMatch(string) method.

public string Pattern { get; init; }

Property Value

string

Methods

IsMatch(string)

Used in ContentCollection to check if the passed filePath matches the current Pattern.

public abstract bool IsMatch(string filePath)

Parameters

filePath string

Relative path to the content file.

Returns

bool

Returns a boolean indicating if the rule has matched the file.