dotnet / dotnet/dotnet-api-docs

Applied to a type or field?

Đang mở
#800 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
.net/prod area-System.ComponentModel.DataAnnotations Pri2 untriaged
Ngôn ngữ chính
C#
Star
949
Fork
1.7k
Merge trung bình
2 ngày 19 giờ
Pull request đã merge (30 ngày)
52

Mô tả

The Remarks section states that this attribute can be "applied to types, properties, fields, methods, and method parameters", then explains some cases, but not the types nor the field ones.
It would be beneficial to explain both these cases too, as they are not obvious.

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 11dfc639-e939-8944-28d6-9c82b53b0676
* Version Independent ID: cf71b269-876f-c64d-72fb-23fc83a9b8c9
* Content: [CustomValidationAttribute Class (System.ComponentModel.DataAnnotations)](https://docs.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.customvalidationattribute?view=netframework-4.7.2#remarks)
* Content Source: [xml/System.ComponentModel.DataAnnotations/CustomValidationAttribute.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.ComponentModel.DataAnnotations/CustomValidationAttribute.xml)
* Product: **.net**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **riande**

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Mở xml/System.ComponentModel.DataAnnotations/CustomValidationAttribute.xml và đọc nội dung Remarks cho CustomValidationAttribute. Mở rộng phần giải thích để bao quát cách thuộc tính này áp dụng cho các kiểu và trường, tương ứng với phần thảo luận hiện có về các đích khác. Hoàn tất khi tài liệu Remarks được tạo giải thích rõ ràng cả hai trường hợp.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
csharp
Lĩnh vực
documentation
Loại issue
Tài liệu
Độ khó
1/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
50/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.