Udostępnij za pośrednictwem


ExtensionMethods.ThrowIfNullOrEmpty(String, String) Method

Definition

Add a throw from string to verify that it is not null or empty

public:
[System::Runtime::CompilerServices::Extension]
 static void ThrowIfNullOrEmpty(System::String ^ value, System::String ^ message);
public:
[System::Runtime::CompilerServices::Extension]
 static void ThrowIfNullOrEmpty(Platform::String ^ value, Platform::String ^ message);
public static void ThrowIfNullOrEmpty (this string value, string message);
static member ThrowIfNullOrEmpty : string * string -> unit
<Extension()>
Public Sub ThrowIfNullOrEmpty (value As String, message As String)

Parameters

value
String
message
String

Applies to