Assumes.NotNullOrEmpty 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| NotNullOrEmpty(String) |
Microsoft.Assumes.InternalErrorException如果指定的值为 null 或为空,则引发。 |
| NotNullOrEmpty<T>(ICollection<T>) |
Microsoft.Assumes.InternalErrorException如果指定的值为 null 或为空,则引发。 |
| NotNullOrEmpty<T>(IEnumerable<T>) |
Microsoft.Assumes.InternalErrorException如果指定的值为 null 或为空,则引发。 |
NotNullOrEmpty(String)
Microsoft.Assumes.InternalErrorException如果指定的值为 null 或为空,则引发。
public:
static void NotNullOrEmpty(System::String ^ value);
[System.Diagnostics.DebuggerStepThrough]
public static void NotNullOrEmpty (string value);
[<System.Diagnostics.DebuggerStepThrough>]
static member NotNullOrEmpty : string -> unit
Public Shared Sub NotNullOrEmpty (value As String)
参数
- value
- String
- 属性
适用于
NotNullOrEmpty<T>(ICollection<T>)
Microsoft.Assumes.InternalErrorException如果指定的值为 null 或为空,则引发。
public:
generic <typename T>
static void NotNullOrEmpty(System::Collections::Generic::ICollection<T> ^ values);
[System.Diagnostics.DebuggerStepThrough]
public static void NotNullOrEmpty<T> (System.Collections.Generic.ICollection<T>? values);
[<System.Diagnostics.DebuggerStepThrough>]
static member NotNullOrEmpty : System.Collections.Generic.ICollection<'T> -> unit
Public Shared Sub NotNullOrEmpty(Of T) (values As ICollection(Of T))
类型参数
- T
要测试的值的类型。
参数
- values
- ICollection<T>
- 属性
适用于
NotNullOrEmpty<T>(IEnumerable<T>)
Microsoft.Assumes.InternalErrorException如果指定的值为 null 或为空,则引发。
public:
generic <typename T>
static void NotNullOrEmpty(System::Collections::Generic::IEnumerable<T> ^ values);
[System.Diagnostics.DebuggerStepThrough]
public static void NotNullOrEmpty<T> (System.Collections.Generic.IEnumerable<T>? values);
[<System.Diagnostics.DebuggerStepThrough>]
static member NotNullOrEmpty : seq<'T> -> unit
Public Shared Sub NotNullOrEmpty(Of T) (values As IEnumerable(Of T))
类型参数
- T
要测试的值的类型。
参数
- values
- IEnumerable<T>
- 属性