C# Class RecordPoint.Connectors.SDK.Helpers.ValidationHelper

Provides helpers for validating arguments to methods.
Afficher le fichier Open project: RecordPoint/RecordPoint.Connectors.SDK

Méthodes publiques

Méthode Description
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.

Method Details

ArgumentNotNull() public static méthode

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.
Résultat void

ArgumentNotNullOrEmpty() public static méthode

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.
Résultat void

ArgumentNotNullOrEmpty() public static méthode

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.
Résultat void

ArgumentNotNullOrWhiteSpace() public static méthode

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.
Résultat void