C# 클래스 RecordPoint.Connectors.SDK.Helpers.ValidationHelper

Provides helpers for validating arguments to methods.
파일 보기 프로젝트 열기: RecordPoint/RecordPoint.Connectors.SDK

공개 메소드들

메소드 설명
ArgumentNotNull ( object argumentValue, string argumentName ) : void

Throws ArgumentNullException if the given argument is null.

ArgumentNotNullOrEmpty ( SecureString argumentValue, string argumentName ) : void

Throws an exception if the tested SecureString argument is null or an empty string.

ArgumentNotNullOrEmpty ( string argumentValue, string argumentName ) : void

Throws an exception if the tested string argument is null or an empty string.

ArgumentNotNullOrWhiteSpace ( string argumentValue, string argumentName ) : void

Throws an exception if the tested string argument is null or a string that contains only whitespace.

메소드 상세

ArgumentNotNull() 공개 정적인 메소드

Throws ArgumentNullException if the given argument is null.
The value is null.
public static ArgumentNotNull ( object argumentValue, string argumentName ) : void
argumentValue object The argument value to test.
argumentName string The name of the argument to test.
리턴 void

ArgumentNotNullOrEmpty() 공개 정적인 메소드

Throws an exception if the tested SecureString argument is null or an empty string.
The string value is null.
public static ArgumentNotNullOrEmpty ( SecureString argumentValue, string argumentName ) : void
argumentValue SecureString The argument value to test.
argumentName string The name of the argument to test.
리턴 void

ArgumentNotNullOrEmpty() 공개 정적인 메소드

Throws an exception if the tested string argument is null or an empty string.
The string value is null or empty.
public static ArgumentNotNullOrEmpty ( string argumentValue, string argumentName ) : void
argumentValue string The argument value to test.
argumentName string The name of the argument to test.
리턴 void

ArgumentNotNullOrWhiteSpace() 공개 정적인 메소드

Throws an exception if the tested string argument is null or a string that contains only whitespace.
The string value is null or contains only whitespace.
public static ArgumentNotNullOrWhiteSpace ( string argumentValue, string argumentName ) : void
argumentValue string The argument value to test.
argumentName string The name of the argument to test.
리턴 void