Requires.NotNullOrWhiteSpace(String, String) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 매개 변수의 값이 null, 비어 있거나 공백인 경우 예외를 throw합니다.
public:
static void NotNullOrWhiteSpace(System::String ^ value, System::String ^ parameterName);
[System.Diagnostics.DebuggerStepThrough]
public static void NotNullOrWhiteSpace(string value, string? parameterName);
[System.Diagnostics.DebuggerStepThrough]
public static void NotNullOrWhiteSpace(string value, string? parameterName = default);
[<System.Diagnostics.DebuggerStepThrough>]
static member NotNullOrWhiteSpace : string * string -> unit
Public Shared Sub NotNullOrWhiteSpace (value As String, parameterName As String)
Public Shared Sub NotNullOrWhiteSpace (value As String, Optional parameterName As String = Nothing)
매개 변수
- value
- String
인수 값입니다.
- parameterName
- String
throw된 예외에 포함할 매개 변수의 이름입니다. 이 인수를 생략하면(명시적으로 쓰기 null 가 적합하지 않음) 첫 번째 인수에 사용된 식이 매개 변수 이름으로 사용됩니다.
- 특성
예외
가 이거나 비어 있는 경우 value throw됩니다 null .