AbstractionsStrings 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
EF 异常中使用的字符串资源,等等。
这些字符串公开供数据库提供程序和扩展使用。 应用程序代码需要这些字符串是不寻常的。
[System.Runtime.CompilerServices.Nullable(0)]
public static class AbstractionsStrings
public static class AbstractionsStrings
[<System.Runtime.CompilerServices.Nullable(0)>]
type AbstractionsStrings = class
type AbstractionsStrings = class
Public Class AbstractionsStrings
- 继承
-
AbstractionsStrings
- 特性
属性
| 名称 | 说明 |
|---|---|
| ArgumentIsEmpty |
字符串参数不能为空。 |
| ArgumentIsNegativeNumber |
number 参数不能为负数。 |
| CannotSpecifyBothIsDescendingAndAllDescending |
不能在 [Index] 属性上指定 IsDescending 和 AllDescending。 |
| CollectionArgumentHasEmptyElements |
集合参数不得包含任何空元素。 |
| CollectionArgumentIsEmpty |
集合参数必须至少包含一个元素。 |
方法
| 名称 | 说明 |
|---|---|
| ArgumentIsEmpty(Object) |
字符串参数“{argumentName}”不能为空。 |
| ArgumentIsNegativeNumber(Object) |
数字参数“{argumentName}”不能为负数。 |
| CollectionArgumentHasEmptyElements(Object) |
集合参数“{argumentName}”不得包含任何空元素。 |
| CollectionArgumentIsEmpty(Object) |
集合参数“{argumentName}”必须至少包含一个元素。 |
| InvalidNumberOfIndexSortOrderValues(Object, Object) |
索引排序顺序值的数目无效:提供了 {numValues} 值,但索引具有 {numProperties} 属性。 |