개정판 e1fb3d16
issue #000: Check_Uri Add
Change-Id: I2c1bc17c7c63b4f15435e49b05a934204c2ec3b0
KCOM/Common/Check_Uri.cs | ||
---|---|---|
1 |
using System; |
|
2 |
using System.Collections.Generic; |
|
3 |
using System.Linq; |
|
4 |
using System.Text; |
|
5 |
using System.Threading.Tasks; |
|
6 |
|
|
7 |
namespace KCOM.Common |
|
8 |
{ |
|
9 |
class Check_Uri |
|
10 |
{ |
|
11 |
public static void UriCheck(string filepath) |
|
12 |
{ |
|
13 |
if (!(Uri.TryCreate(filepath, UriKind.Absolute, out Uri uri) && uri.Scheme == Uri.UriSchemeHttp)) |
|
14 |
{ |
|
15 |
throw new Exception(); |
|
16 |
} |
|
17 |
} |
|
18 |
} |
|
19 |
} |
내보내기 Unified diff