Assumes 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
실패 시 예외를 throw Microsoft.Assumes.InternalErrorException 하는 일반적인 런타임 검사입니다.
public ref class Assumes abstract sealed
public static class Assumes
type Assumes = class
Public Class Assumes
- 상속
-
Assumes
메서드
Fail(String, Exception) |
공용 예외를 throw합니다. |
Fail(String) |
공용 예외를 throw합니다. |
False(Boolean, String, Object) |
조건이 true로 평가되면 공용 예외를 throw합니다. |
False(Boolean, String, Object[]) |
조건이 true로 평가되면 공용 예외를 throw합니다. |
False(Boolean, String) |
조건이 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, Object) |
조건이 false로 평가되면 공용 예외를 throw합니다. |
True(Boolean, String, Object[]) |
조건이 false로 평가되면 공용 예외를 throw합니다. |
True(Boolean, String) |
조건이 false로 평가되면 공용 예외를 throw합니다. |
True(Boolean, ValidationInterpolatedStringHandler) |
조건이 false로 평가되면 공용 예외를 throw합니다. |