Mono Class Library: System.Uri Overview | Members

System.Uri.CheckSecurity Method

Checks the current instance for character sequences that can result in unauthorized access to resources, and removes them.

[System.Obsolete]
protected virtual void CheckSecurity ()

Remarks

Operation
This method checks for invalid or dangerous character sequences in the components of the current instance, and removes them. The semantics that determine whether a character sequence presents a security risk are determined by the scheme of the current instance.

The default implementation does nothing.

Note to Inheritors
Override this method to provide security checks for types derived from Uri.

Usage
Invoke this method on instances of types derived from Uri to remove any URI content that allows unauthorized access to resources.

Requirements

Namespace: System
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0