CodeContract.RequiresArgumentNotNullAndNotEmpty(String, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
要求字符串不为 null 且不为空
public:
[System::Runtime::CompilerServices::Extension]
static void RequiresArgumentNotNullAndNotEmpty(System::String ^ value, System::String ^ argumentName);
public static void RequiresArgumentNotNullAndNotEmpty (this string value, string argumentName);
static member RequiresArgumentNotNullAndNotEmpty : string * string -> unit
<Extension()>
Public Sub RequiresArgumentNotNullAndNotEmpty (value As String, argumentName As String)
参数
- value
- String
value
- argumentName
- String
参数的字符串表示形式