Provides attributes that are used to define metadata for objects used as data sources. Commonly Used Types: System.ComponentModel.DataAnnotations.ValidationResult System.ComponentModel.DataAnnotations.IValidatableObject System.ComponentModel.DataAnnotations.ValidationAttribute System.ComponentModel.DataAnnotations.RequiredAttribute System.ComponentModel.DataAnnotations.StringLengthAttribute System.ComponentModel.DataAnnotations.DisplayAttribute System.ComponentModel.DataAnnotations.RegularExpressionAttribute System.ComponentModel.DataAnnotations.DataTypeAttribute System.ComponentModel.DataAnnotations.RangeAttribute System.ComponentModel.DataAnnotations.KeyAttribute When using NuGet 3.x this package requires at least version 3.4.
dotnet add package System.ComponentModel.Annotations --version 5.0.0-preview.2.20160.6
Install-Package System.ComponentModel.Annotations -Version 5.0.0-preview.2.20160.6
| 包名 | 版本要求 |
|---|---|
| NETStandard.Library | [1.6.1, ) |
| System.ComponentModel | [4.3.0, ) |
| 包名 | 版本要求 |
|---|---|
| NETStandard.Library | [1.6.1, ) |
| 包名 | 版本要求 |
|---|---|
| NETStandard.Library | [1.6.1, ) |
| System.ComponentModel | [4.3.0, ) |
| 包名 | 版本要求 |
|---|---|
| NETStandard.Library | [1.6.1, ) |
| System.ComponentModel | [4.3.0, ) |
| 作者 | Microsoft |
|---|---|
| 发布时间 | 2020-04-02 14:07:10 |
| 项目主页 | https://github.com/dotnet/runtime |
| 许可证 | https://www.nuget.org/packages/System.ComponentModel.Annotations/5.0.0-preview.2.20160.6/license |