xtd 0.2.0
Loading...
Searching...
No Matches

◆ is_unc()

bool xtd::uri::is_unc ( ) const

Gets whether the specified xtd::uri is a universal naming convention (UNC) path.

Returns
bool A bool value that is true if the xtd::uri is a UNC path; otherwise, false.
Exceptions
xtd::invalid_operation_exceptionThis instance represents a relative URI, and this property is valid only for absolute URIs.
Remarks
The is_unc property is true if the specified xtd::uri instance is a UNC path (such as \server\folder or file://server/folder). This property always returns true if the URI has the file:// scheme and specifies a host component.