uri class : IsFile getter

Description

Gets a value that indicates whether the URI is a file URI.

Syntax

uriInstance.IsFile

Arguments

None.

Return value

ClassDescription
boolA value that indicates whether the URI is a file URI.

Sample code

1:

uri u = new uri("http://www.example.com/aaa/bbb.html");

2:

bool isFile = u.IsFile; // false

3:

u = new uri("file:///c:/.../ccc.html");

4:

isFile = u.IsFile; // true

Notes

It's a wrapper of the System.Uri.IsFile property.

Links for reference

Copyright © Cooker All rights reserved.