Lesson 6: The [MaxLength], [MinLength], and [StringLength] Attributes
In this lesson you learn to limit the total number of characters that can be entered into a property using [MaxLength], [MinLength], and [StringLength] attributes.
Content
Lesson Objectives 00:00
DEMO: Add [MaxLength] Attribute to Limit Total Characters 00:25
DEMO: Add [MinLength] Attribute to Force a Minimum Number of Characters 01:49
DEMO: Using the [StringLength] Attribute to Set a Minimum and Maximum Number of Characters 03:03
Lesson Summary 04:32
Useful Links
Samples and hands-on labs for this course: https://www.pdsa.com/YouTube
[MaxLength] attribute: https://learn.microsoft.com/en-us/dot...
[MinLength] attribute: https://learn.microsoft.com/en-us/dot...
[StringLength] attribute: https://learn.microsoft.com/en-us/dot...
#dataannotation #validation #csharp #development #programming #dotnet #dotnetcore #dotnet6 #dotnet #dotnet8 #pauldsheriff #pluralsight #youtube
Paul.About()
Hello, my name is Paul D. Sheriff and I have a passion for teaching. I have been training developers for over 35 years through books, videos, article, blog posts, and international conferences and user groups.
Paul.Contact()
Website: https://www.pdsa.com
Email: [email protected]
LinkedIn: / paulsheriff
Blog: https://blogs.pdsa.com/
Pluralsight: https://app.pluralsight.com/profile/a...
YouTube Channel: @pauldsheriff
Смотрите видео Lesson 6: The [MaxLength], [MinLength], and [StringLength] Attributes онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Paul D. Sheriff 09 Февраль 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 172 раз и оно понравилось 7 людям.