VirtualDirectoryCollection.InvalidVirtualDirectoryPathCharacters Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves an array of characters that cannot be used in the path of a virtual directory.
public:
static cli::array <char> ^ InvalidVirtualDirectoryPathCharacters();
public static char[] InvalidVirtualDirectoryPathCharacters ();
static member InvalidVirtualDirectoryPathCharacters : unit -> char[]
Public Shared Function InvalidVirtualDirectoryPathCharacters () As Char()
Returns
An array of characters that cannot be used in the path of a virtual directory.
Examples
The following example validates virtual directory path characters by using the InvalidVirtualDirectoryPathCharacters method.
Remarks
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.