SqlFacetAttribute.MaxSize SqlFacetAttribute.MaxSize SqlFacetAttribute.MaxSize SqlFacetAttribute.MaxSize Property

定义

用户定义类型的基础字段类型的最大大小(用逻辑单元表示)。The maximum size, in logical units, of the underlying field type of the user-defined type.

public:
 property int MaxSize { int get(); void set(int value); };
public int MaxSize { get; set; }
member this.MaxSize : int with get, set
Public Property MaxSize As Integer

属性值

一个 Int32,它以逻辑单位表示基础字段类型的最大大小。An Int32 representing the maximum size, in logical units, of the underlying field type.

注解

逻辑单元是二进制文件和非 Unicode 数据类型和 Unicode 字符字段类型 (具有最大大小为 4000) 字符数 (具有最大大小为 8000) 字节。Logical unit is bytes (with a maximum size of 8000) for the binary and non-Unicode data types, and the number of Unicode characters (with a maximum size of 4000) for the character field types.

为大型字符和二进制类型被保留的值为-1。The value -1 is reserved for large character and binary types.

默认值为 Unicode 字符类型的 4000 和 8000 二进制文件和非 Unicode 类型。The default value is 4000 for Unicode character types and 8000 for binary and non-Unicode types.

适用于