Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In CustomValidationAttribute description of validatorType is useless #10928

Open
Scal-Human opened this issue Feb 8, 2025 · 1 comment
Open
Labels
area-System.ComponentModel.DataAnnotations untriaged New issue has not been triaged by the area owner

Comments

@Scal-Human
Copy link

Scal-Human commented Feb 8, 2025

Type of issue

Lack of information

Description

Hi,

Trying to implement a custom validation attribute deriving from CustomValidationAttribute, the documentation on the constructor does not say anything useful about the validatorType.
Does it have to implement a certain interface ? be of a certain type ?

I ended up deriving ValidationAttribute which more suited my need.
Nevertheless, the documentation could be improved.

Can somebody add some more information ?

Scal

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.customvalidationattribute.-ctor?view=net-9.0

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.ComponentModel.DataAnnotations/CustomValidationAttribute.xml

Document Version Independent Id

b2df589f-3424-b320-aad2-5f5381b18fcb

Article author

@dotnet-bot

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Feb 8, 2025
Copy link
Contributor

Tagging subscribers to this area: @ajcvickers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.ComponentModel.DataAnnotations untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

1 participant