Share via


Requires.NotEmpty(Guid, String) Method

Definition

Throws an exception if the specified parameter's value is Empty.

public:
 static void NotEmpty(Guid value, System::String ^ parameterName);
[System.Diagnostics.DebuggerStepThrough]
public static void NotEmpty (Guid value, string? parameterName);
[System.Diagnostics.DebuggerStepThrough]
public static void NotEmpty (Guid value, string? parameterName = default);
[<System.Diagnostics.DebuggerStepThrough>]
static member NotEmpty : Guid * string -> unit
Public Shared Sub NotEmpty (value As Guid, parameterName As String)
Public Shared Sub NotEmpty (value As Guid, Optional parameterName As String = Nothing)

Parameters

value
Guid

The value of the argument.

parameterName
String

The name of the parameter to include in any thrown exception. If this argument is omitted (explicitly writing null does not qualify), the expression used in the first argument will be used as the parameter name.

Attributes

Exceptions

Thrown if value is an empty guid (Empty.)

Applies to