Partager via


Uri.IsUnc Property

Gets whether the specified Uri is a universal naming convention (UNC) path.

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

Syntax

public bool IsUnc { get; }

Property Value

true if the Uri is a UNC path; otherwise, false.

Exceptions

Exception type Condition
InvalidOperationException This instance represents a relative URI, and this property is valid only for absolute URIs.

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