Requires Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Common runtime checks that throw ArgumentExceptions upon failure.
public ref class Requires abstract sealed
public static class Requires
type Requires = class
Public Class Requires
- Inheritance
-
Requires
Methods
Argument(Boolean, String, ResourceManager, String, Object, Object) |
Throws an ArgumentException if a condition does not evaluate to true. |
Argument(Boolean, String, ResourceManager, String, Object) | |
Argument(Boolean, String, ResourceManager, String, Object[]) |
Throws an ArgumentException if a condition does not evaluate to true. |
Argument(Boolean, String, ResourceManager, String) |
Throws an ArgumentException if a condition does not evaluate to true. |
Argument(Boolean, String, String, Object, Object) |
Throws an ArgumentException if a condition does not evaluate to true. |
Argument(Boolean, String, String, Object) |
Throws an ArgumentException if a condition does not evaluate to true. |
Argument(Boolean, String, String, Object[]) |
Throws an ArgumentException if a condition does not evaluate to true. |
Argument(Boolean, String, String) |
Throws an ArgumentException if a condition does not evaluate to true. |
Argument(Boolean, String, ValidationInterpolatedStringHandler) |
Throws an ArgumentException if a condition does not evaluate to true. |
Defined<TEnum>(TEnum, String) |
Throws an InvalidEnumArgumentException if a given value is not a named value of the enum type. |
Fail(Exception, String, Object[]) |
Throws an ArgumentException. |
Fail(String, Object[]) |
Throws an ArgumentException. |
Fail(String) |
Throws an ArgumentException. |
FailRange(String, String) |
Throws an ArgumentOutOfRangeException if a condition does not evaluate to true. |
NotDefault<T>(T, String) |
Throws an ArgumentException if the specified parameter's value is equal to the
default value of the Type |
NotEmpty(Guid, String) |
Throws an exception if the specified parameter's value is Empty. |
NotNull(IntPtr, String) |
Throws an exception if the specified parameter's value is IntPtr.Zero. |
NotNull(Task, String) |
Throws an exception if the specified parameter's value is null. |
NotNull<T>(T, String) |
Throws an exception if the specified parameter's value is null. |
NotNull<T>(Task<T>, String) |
Throws an exception if the specified parameter's value is null. |
NotNullAllowStructs<T>(T, String) |
Throws an exception if the specified parameter's value is null. |
NotNullEmptyOrNullElements<T>(IEnumerable<T>, String) |
Throws an exception if the specified parameter's value is null, has no elements or has an element with a null value. |
NotNullOrEmpty(IEnumerable, String) |
Throws an exception if the specified parameter's value is null, has no elements. |
NotNullOrEmpty(String, String) |
Throws an exception if the specified parameter's value is null or empty. |
NotNullOrEmpty<T>(ICollection<T>, String) |
Throws an exception if the specified parameter's value is null, has no elements. |
NotNullOrEmpty<T>(IEnumerable<T>, String) |
Throws an exception if the specified parameter's value is null, has no elements. |
NotNullOrWhiteSpace(String, String) |
Throws an exception if the specified parameter's value is null, empty, or whitespace. |
NullOrNotNullElements<T>(IEnumerable<T>, String) |
Throws an exception if the specified parameter's value is not null and has an element with a null value. |
Range(Boolean, String, String) |
Throws an ArgumentOutOfRangeException if a condition does not evaluate to true. |
ValidElements<T>(IEnumerable<T>, Predicate<T>, String, String, Object[]) |
Throws an exception if |
ValidElements<T>(IEnumerable<T>, Predicate<T>, String, String) |
Throws an exception if |