ExtensionMethods.ThrowIfNullOrEmpty(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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