다음을 통해 공유


Requires 클래스

정의

실패 시 ArgumentExceptions를 throw하는 일반적인 런타임 검사입니다.

public ref class Requires abstract sealed
public static class Requires
type Requires = class
Public Class Requires
상속
Requires

메서드

Argument(Boolean, String, ResourceManager, String, Object, Object)

조건이 true로 ArgumentException 평가되지 않으면 을 throw합니다.

Argument(Boolean, String, ResourceManager, String, Object)

실패 시 ArgumentExceptions를 throw하는 일반적인 런타임 검사입니다.

Argument(Boolean, String, ResourceManager, String, Object[])

조건이 true로 ArgumentException 평가되지 않으면 을 throw합니다.

Argument(Boolean, String, ResourceManager, String)

조건이 true로 ArgumentException 평가되지 않으면 을 throw합니다.

Argument(Boolean, String, String, Object, Object)

조건이 true로 ArgumentException 평가되지 않으면 을 throw합니다.

Argument(Boolean, String, String, Object)

조건이 true로 ArgumentException 평가되지 않으면 을 throw합니다.

Argument(Boolean, String, String, Object[])

조건이 true로 ArgumentException 평가되지 않으면 을 throw합니다.

Argument(Boolean, String, String)

조건이 true로 ArgumentException 평가되지 않으면 을 throw합니다.

Argument(Boolean, String, ValidationInterpolatedStringHandler)

조건이 true로 ArgumentException 평가되지 않으면 을 throw합니다.

Defined<TEnum>(TEnum, String)

InvalidEnumArgumentException 지정된 값이 열거형 형식의 명명된 값이 아닌 경우 을 throw합니다.

Fail(Exception, String, Object[])

ArgumentException을 throw합니다.

Fail(String, Object[])

ArgumentException을 throw합니다.

Fail(String)

ArgumentException을 throw합니다.

FailRange(String, String)

조건이 true로 ArgumentOutOfRangeException 평가되지 않으면 을 throw합니다.

NotDefault<T>(T, String)

지정된 매개 변수의 값이 의 기본값과 같으면 을 TypeTthrow합니다ArgumentException.

NotEmpty(Guid, String)

지정된 매개 변수의 값이 인 경우 예외를 throw합니다 Empty.

NotNull(IntPtr, String)

지정된 매개 변수의 값이 IntPtr.Zero이면 예외를 throw합니다.

NotNull(Task, String)

지정된 매개 변수의 값이 null이면 예외를 throw합니다.

NotNull<T>(T, String)

지정된 매개 변수의 값이 null이면 예외를 throw합니다.

NotNull<T>(Task<T>, String)

지정된 매개 변수의 값이 null이면 예외를 throw합니다.

NotNullAllowStructs<T>(T, String)

지정된 매개 변수의 값이 null이면 예외를 throw합니다.

NotNullEmptyOrNullElements<T>(IEnumerable<T>, String)

지정된 매개 변수의 값이 null이거나, 요소가 없거나, null 값이 있는 요소가 있는 경우 예외를 throw합니다.

NotNullOrEmpty(IEnumerable, String)

지정된 매개 변수의 값이 null이고 요소가 없으면 예외를 throw합니다.

NotNullOrEmpty(String, String)

지정된 매개 변수의 값이 null이거나 비어 있으면 예외를 throw합니다.

NotNullOrEmpty<T>(ICollection<T>, String)

지정된 매개 변수의 값이 null이고 요소가 없으면 예외를 throw합니다.

NotNullOrEmpty<T>(IEnumerable<T>, String)

지정된 매개 변수의 값이 null이고 요소가 없으면 예외를 throw합니다.

NotNullOrWhiteSpace(String, String)

지정된 매개 변수의 값이 null, 비어 있거나 공백인 경우 예외를 throw합니다.

NullOrNotNullElements<T>(IEnumerable<T>, String)

지정된 매개 변수의 값이 null이 아니 null 값이 있는 요소가 있는 경우 예외를 throw합니다.

Range(Boolean, String, String)

조건이 true로 ArgumentOutOfRangeException 평가되지 않으면 을 throw합니다.

ValidElements<T>(IEnumerable<T>, Predicate<T>, String, String, Object[])

가 null이거나, 가 null이거나, predicate 가 null이 아니고 지정된 조건자와 일치하지 않는 요소가 있는 경우 values 예외 values 를 throw합니다.

ValidElements<T>(IEnumerable<T>, Predicate<T>, String, String)

가 null이거나, 가 null이거나, predicate 가 null이 아니고 지정된 조건자와 일치하지 않는 요소가 있는 경우 values 예외 values 를 throw합니다.

적용 대상