Метод | Описание | |
---|---|---|
Failed ( int hr ) : bool | ||
Succeeded ( int hr ) : bool | ||
ThrowIfFalse ( bool condition, string paramName ) : void | ||
ThrowIfPathNullOrEmpty ( string filePath, string paramName ) : void | ||
ThrowIsNull ( object value, string paramName ) : void |
Throws ArgumentNullException when value is null.
|
|
ThrowIsNull ( object value, string paramName, string message ) : void |
Throws ArgumentNullException when value is null.
|
|
ThrowIsNullOrEmpty ( string value, string paramName ) : void |
Throws ArgumentException when string value is null or empty.
|
|
ThrowIsNullOrEmpty ( string value, string paramName, string message ) : void |
Throws ArgumentException when string value is null or empty.
|
|
ThrowIsNullOrInvalidType ( |
Throws ArgumentException when value is null or value isn't validType.
|
|
ThrowIsNullOrInvalidType ( object value, |
Throws ArgumentException when value is null or value isn't validType.
|
|
ThrowOnFailure ( int hr ) : int |
public static Succeeded ( int hr ) : bool | ||
hr | int | |
Результат | bool |
public static ThrowIfFalse ( bool condition, string paramName ) : void | ||
condition | bool | |
paramName | string | |
Результат | void |
public static ThrowIfPathNullOrEmpty ( string filePath, string paramName ) : void | ||
filePath | string | |
paramName | string | |
Результат | void |
public static ThrowIsNull ( object value, string paramName ) : void | ||
value | object | test object. |
paramName | string | parameter name for ArgumentNullException. |
Результат | void |
public static ThrowIsNull ( object value, string paramName, string message ) : void | ||
value | object | test object. |
paramName | string | parameter name for ArgumentNullException. |
message | string | text message for ArgumentNullException. |
Результат | void |
public static ThrowIsNullOrEmpty ( string value, string paramName ) : void | ||
value | string | string value. |
paramName | string | parameter name for ArgumentException. |
Результат | void |
public static ThrowIsNullOrEmpty ( string value, string paramName, string message ) : void | ||
value | string | string value. |
paramName | string | parameter name for ArgumentException. |
message | string | Message. |
Результат | void |
public static ThrowIsNullOrInvalidType ( |
||
value | The value. | |
validType | valid type for test object. | |
paramName | string | parameter name for ArgumentException. |
Результат | void |
public static ThrowIsNullOrInvalidType ( object value, |
||
value | object | test object. |
validType | valid type for test object. | |
paramName | string | parameter name for ArgumentException. |
Результат | void |
public static ThrowOnFailure ( int hr ) : int | ||
hr | int | |
Результат | int |