DSkin
DSkin
DSkin.Html.Core.Utils
ArgChecker 类
ArgChecker 方法
AssertArgNotNull 方法
AssertArgNotNullOrEmpty 方法
AssertArgOfType(T) 方法
AssertFileExist 方法
AssertIsTrue(TException) 方法
ArgChecker
AssertFileExist 方法
Validate given argument isn't Null or empty AND argument value is the path of existing file.
命名空间:
DSkin.Html.Core.Utils
程序集:
DSkin (在 DSkin.dll 中) 版本:16.6.3.22
语法
C#
复制
public
static
void
AssertFileExist
(
string
arg
,
string
argName
)
参数
arg
类型:
System
String
argument to validate
argName
类型:
System
String
Name of the argument checked
异常
异常
条件
ArgumentNullException
if
arg
is Null or empty
FileNotFoundException
if
[!:arg]
file-path not exist
参见
引用
ArgChecker 类
DSkin.Html.Core.Utils 命名空间