dotnet / dotnet/dotnet-api-docs

Applied to a type or field?

オープン
#800 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
.net/prod area-System.ComponentModel.DataAnnotations Pri2 untriaged
主要言語
C#
スター
949
フォーク
1.7k
平均マージ
2日 19時間
マージ済み PR(30日)
52

説明

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**

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

xml/System.ComponentModel.DataAnnotations/CustomValidationAttribute.xml を開き、CustomValidationAttribute の Remarks の内容を読んでください。既存の他のターゲットに関する説明に合わせて、属性が型とフィールドにどのように適用されるかを説明するよう内容を拡張してください。生成された Remarks ドキュメントで両方のケースが明確に説明されていれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp
領域
documentation
issue の種類
ドキュメント
難易度
1/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
50/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。