Share via


CodeContract.RequiresArgumentNotEmpty(Guid, String) Method

Definition

Requires that Guid is not empty

public:
[System::Runtime::CompilerServices::Extension]
 static void RequiresArgumentNotEmpty(Guid guid, System::String ^ argumentName);
public static void RequiresArgumentNotEmpty (this Guid guid, string argumentName);
static member RequiresArgumentNotEmpty : Guid * string -> unit
<Extension()>
Public Sub RequiresArgumentNotEmpty (guid As Guid, argumentName As String)

Parameters

guid
Guid

Guid to validate

argumentName
String

string representation of the argument

Applies to