CodeContract.RequiresArgumentNotEmpty(Guid, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
要求 Guid 不是空的
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)
參數
- guid
- Guid
要驗證的 Guid
- argumentName
- String
自變數的字串表示