Click or drag to resize

ConversionsGetNewFileNameAsync Method

Compute a new name from a tentative name and a function that tests if a name exists.

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public static Task<string> GetNewFileNameAsync(
	string tentativeName,
	Func<string, Task<bool>> testNameFunc
)

Parameters

tentativeName
Type: SystemString
The tentative name.
testNameFunc
Type: SystemFuncString, TaskBoolean
The name check function.

Return Value

Type: TaskString
A string representing a new name.
Exceptions
ExceptionCondition
ArgumentNullExceptiontentativeName is null or testNameFunc is null.
See Also