Assumes 클래스

정의

실패 시 예외를 throw Microsoft.Assumes.InternalErrorException 하는 일반적인 런타임 검사입니다.

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

메서드

Fail(String)

공용 예외를 throw합니다.

Fail(String, Exception)

공용 예외를 throw합니다.

False(Boolean, String)

조건이 true로 평가되면 공용 예외를 throw합니다.

False(Boolean, String, Object)

조건이 true로 평가되면 공용 예외를 throw합니다.

False(Boolean, String, Object[])

조건이 true로 평가되면 공용 예외를 throw합니다.

False(Boolean, ValidationInterpolatedStringHandlerInvertedCondition)

조건이 true로 평가되면 공용 예외를 throw합니다.

Is<T>(Object)

Microsoft.Assumes.InternalErrorException 지정된 개체가 지정된 형식이 아닌 경우 을 throw합니다.

NotNull<T>(Nullable<T>)

지정된 값이 null이면 을 throw합니다 Microsoft.Assumes.InternalErrorException .

NotNull<T>(T)

지정된 값이 null이면 을 throw합니다 Microsoft.Assumes.InternalErrorException .

NotNullOrEmpty(String)

지정된 값이 null이거나 비어 있으면 을 throw합니다 Microsoft.Assumes.InternalErrorException .

NotNullOrEmpty<T>(ICollection<T>)

지정된 값이 null이거나 비어 있으면 을 throw합니다 Microsoft.Assumes.InternalErrorException .

NotNullOrEmpty<T>(IEnumerable<T>)

지정된 값이 null이거나 비어 있으면 을 throw합니다 Microsoft.Assumes.InternalErrorException .

NotReachable()

무조건 을 throw합니다 Microsoft.Assumes.InternalErrorException.

NotReachable<T>()

무조건 을 throw합니다 Microsoft.Assumes.InternalErrorException.

Null<T>(Nullable<T>)

Microsoft.Assumes.InternalErrorException 지정된 값이 null이 아닌 경우 을 throw합니다.

Null<T>(T)

Microsoft.Assumes.InternalErrorException 지정된 값이 null이 아닌 경우 을 throw합니다.

Present<T>(T)

값이 null이 아닌지 확인하고, 그렇지 않으면 누락된 서비스에 대해 throw합니다 Microsoft.Assumes.InternalErrorException .

True(Boolean, String)

조건이 false로 평가되면 공용 예외를 throw합니다.

True(Boolean, String, Object)

조건이 false로 평가되면 공용 예외를 throw합니다.

True(Boolean, String, Object[])

조건이 false로 평가되면 공용 예외를 throw합니다.

True(Boolean, ValidationInterpolatedStringHandler)

조건이 false로 평가되면 공용 예외를 throw합니다.

적용 대상