Thrown when a required argument is null or empty.
Used to report on a string value that must contains a value.
This example throws the exception when an argument is not valid.
if (IsInvalid(argumentName))
{
throw new ArgumentNullOrEmptyException(nameof(argumentName));
}
Initializes a new instance of ArgumentNullOrEmptyException.
public Void ArgumentNullOrEmptyException(argname)
Name | Type | Summary |
---|---|---|
argname | String |
In this document