Share via


Uri.ValidateUrn Method

Parses a Urn string into Uri variables.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

Syntax

protected void ValidateUrn (
         stringuri
)

Parameters

  • uri
    A Uri.

Remarks

Parsing is restricted to basic urn:NamespaceID and urn:uuid formats only.

Exceptions

Exception type Condition
ArgumentNullException uri is null.
Exception

See the constructor description.

Version Information

Available in the .NET Micro Framework versions 4.0 and 4.1.

See Also

Reference

Uri Class
Uri Members
System Namespace