Assumes.True 메서드

정의

오버로드

True(Boolean, ValidationInterpolatedStringHandler)

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

True(Boolean, String)

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

True(Boolean, String, Object)

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

True(Boolean, String, Object[])

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

True(Boolean, ValidationInterpolatedStringHandler)

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

[System.Diagnostics.DebuggerStepThrough]
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
public static void True (bool condition, ref Microsoft.ValidationInterpolatedStringHandler message);
[<System.Diagnostics.DebuggerStepThrough>]
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")>]
static member True : bool * ValidationInterpolatedStringHandler -> unit
Public Shared Sub True (condition As Boolean, ByRef message As ValidationInterpolatedStringHandler)

매개 변수

condition
Boolean
message
Microsoft.ValidationInterpolatedStringHandler
특성

적용 대상

True(Boolean, String)

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

[System.Diagnostics.DebuggerStepThrough]
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
public static void True (bool condition, string? message = default);
[<System.Diagnostics.DebuggerStepThrough>]
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")>]
static member True : bool * string -> unit
Public Shared Sub True (condition As Boolean, Optional message As String = Nothing)

매개 변수

condition
Boolean
message
String
특성

적용 대상

True(Boolean, String, Object)

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

public:
 static void True(bool condition, System::String ^ unformattedMessage, System::Object ^ arg1);
[System.Diagnostics.DebuggerStepThrough]
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
public static void True (bool condition, string unformattedMessage, object? arg1);
[<System.Diagnostics.DebuggerStepThrough>]
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")>]
static member True : bool * string * obj -> unit
Public Shared Sub True (condition As Boolean, unformattedMessage As String, arg1 As Object)

매개 변수

condition
Boolean
unformattedMessage
String
arg1
Object
특성

적용 대상

True(Boolean, String, Object[])

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

public:
 static void True(bool condition, System::String ^ unformattedMessage, ... cli::array <System::Object ^> ^ args);
[System.Diagnostics.DebuggerStepThrough]
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
public static void True (bool condition, string unformattedMessage, params object?[] args);
[<System.Diagnostics.DebuggerStepThrough>]
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")>]
static member True : bool * string * obj[] -> unit
Public Shared Sub True (condition As Boolean, unformattedMessage As String, ParamArray args As Object())

매개 변수

condition
Boolean
unformattedMessage
String
args
Object[]
특성

적용 대상