Partager via


Uri.ValidateUrn Method

Parses a Urn string into Uri variables.

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

Syntax

protected void ValidateUrn (
         string uri
)

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, 4.1, and 4.2.

See Also

Reference

Uri Class
Uri Members
System Namespace