WriteFileAsync.RemoveInvalidChars Method

Removes forbidden chars from a string representing a file path.
Protected Shared Function RemoveInvalidChars( _ 
ByVal dirtyFileName As String
) As String
This language is not supported or no code example is available.
protected static string RemoveInvalidChars( 
string dirtyFileName 
)
This language is not supported or no code example is available.

Parameters

dirtyFileName
string

The file name (full path) to check.

Return Value

string

The file name cleaned.

.NET Framework

Supported in: 4.8

In this article

Definition