Share via


VirtualDirectoryCollection.InvalidVirtualDirectoryPathCharacters Method

Definition

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

Char[]

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.

Applies to