A file pattern class used to lookup files matching a specified pattern.
More...
|
string | Pattern [get, set] |
| Gets or sets the pattern used to look for files. More...
|
|
bool | IsValid [get] |
| Gets a value indicating whether the Pattern is valid. More...
|
|
A file pattern class used to lookup files matching a specified pattern.
DirectOutput.General.FilePattern.FilePattern |
( |
string |
Pattern | ) |
|
Initializes a new instance of the FilePattern class.
- Parameters
-
DirectOutput.General.FilePattern.FilePattern |
( |
| ) |
|
FileInfo DirectOutput.General.FilePattern.GetFirstMatchingFile |
( |
Dictionary< string, string > |
ReplaceValues = null | ) |
|
Gets the first file matching the value of the Pattern property.
- Parameters
-
ReplaceValues | Dictionary containing key/value pairs used to replace placeholders in the form {PlaceHolder} in the pattern. |
- Returns
- The first file matching the value of the Pattern property or null if no file matches the pattern.
List<FileInfo> DirectOutput.General.FilePattern.GetMatchingFiles |
( |
Dictionary< string, string > |
ReplaceValues = null | ) |
|
Gets the files matching the value of the property Pattern.
- Parameters
-
ReplaceValues | Dictionary containing key/value pairs used to replace placeholders in the form {PlaceHolder} in the pattern. |
- Returns
- The list of files matching the value of the property Pattern or a empty list if no file matches the pattern.
System.Xml.Schema.XmlSchema DirectOutput.General.FilePattern.GetSchema |
( |
| ) |
|
Method is required by the IXmlSerializable interface
- Returns
- Returns always null
void DirectOutput.General.FilePattern.ReadXml |
( |
System.Xml.XmlReader |
reader | ) |
|
Deserializes the FilePattern in the XmlReader.
ReadXml is part of the IXmlSerializable interface.
string DirectOutput.General.FilePattern.ReplacePlaceholders |
( |
Dictionary< string, string > |
ReplaceValues = null | ) |
|
Returns the pattern with replaced placeholders.
- Parameters
-
ReplaceValues | A dictionary containg the replace values. |
- Returns
- Pattern with replaced placeholders.
override string DirectOutput.General.FilePattern.ToString |
( |
| ) |
|
Returns a System.String that represents this instance.
- Returns
- A System.String that represents this instance.
void DirectOutput.General.FilePattern.WriteXml |
( |
System.Xml.XmlWriter |
writer | ) |
|
Serializes the FilePattern to Xml.
WriteXml is part of the IXmlSerializable interface.
bool DirectOutput.General.FilePattern.IsValid |
|
get |
Gets a value indicating whether the Pattern is valid.
true
if the Pattern is valid; otherwise, false
.
string DirectOutput.General.FilePattern.Pattern |
|
getset |
Gets or sets the pattern used to look for files.
The pattern used to look for files.
PropertyChangedEventHandler DirectOutput.General.FilePattern.PropertyChanged |
Is fired if the value of a property changes.
The documentation for this class was generated from the following file:
- C:/Users/Tom/Documents/GitHub/DirectOutput/DirectOutput/General/FilePattern.cs