Skip to main content

Search.Replace Method

Containing Type: Search

Assembly: Orang.FileSystem.dll

Overloads

MethodSummary
Replace(String, MatchEvaluator, ReplaceOptions, CancellationToken)
Replace(String, String, ReplaceOptions, CancellationToken)

Replace(String, MatchEvaluator, ReplaceOptions, CancellationToken)

public Orang.FileSystem.IOperationResult Replace(string directoryPath, System.Text.RegularExpressions.MatchEvaluator matchEvaluator, Orang.FileSystem.ReplaceOptions? options = null, System.Threading.CancellationToken cancellationToken = default)

Parameters

directoryPath String

matchEvaluator MatchEvaluator

options ReplaceOptions

cancellationToken CancellationToken

Returns

IOperationResult

Replace(String, String, ReplaceOptions, CancellationToken)

public Orang.FileSystem.IOperationResult Replace(string directoryPath, string? replacement = null, Orang.FileSystem.ReplaceOptions? options = null, System.Threading.CancellationToken cancellationToken = default)

Parameters

directoryPath String

replacement String

options ReplaceOptions

cancellationToken CancellationToken

Returns

IOperationResult