General.RemoveInvalidWindowsCharacters Method

Remove invalid characters from a path or file name
Public Shared Function RemoveInvalidWindowsCharacters( _ 
ByVal name As String, _ 
Optional ByVal replacement As String = "" _ 
) As String
This language is not supported or no code example is available.
public static string RemoveInvalidWindowsCharacters( 
string name
string replacement = "" 
)
This language is not supported or no code example is available.
public:  
static String^ RemoveInvalidWindowsCharacters( 
String^ name
String^ replacement 
)
This language is not supported or no code example is available.
public static function RemoveInvalidWindowsCharacters( 
name : String
replacement : String 
) : String;
This language is not supported or no code example is available.

Parameters

name
string

<default>

replacement
string

<default>

Return Value

string

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1

In this article

Definition