Requires.NotEmpty(Guid, 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.
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.)