ApplicationCollection.InvalidApplicationPathCharacters Method ()

IIS 7.0
 

Retrieves an array of characters that cannot be used in the path of an application.

Namespace:   Microsoft.Web.Administration
Assembly:  Microsoft.Web.Administration (in Microsoft.Web.Administration.dll)

public static char[] InvalidApplicationPathCharacters()

Return Value

Type: System.Char[]

An array of characters that cannot be used in the path of an application.

In a Windows operating system that is running the common language runtime (CLR), this method will return the following characters: \?;:@&=+$,|"<>*

"*" is an invalid file system character. You cannot use the remaining characters in managed-code location tags. The "/" character is acceptable for a virtual directory.

The following example demonstrates how to use the InvalidApplicationPathCharacters method to validate application paths.

Return to top
Show: