Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6925305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:46:21+00:00 2026-05-27T10:46:21+00:00

Why does the IDE not recognize the Required attribute in the following code? Imports

  • 0

Why does the IDE not recognize the Required attribute in the following code?

Imports System.ComponentModel.DataAnnotations

Public Class ShippingDetails

<Required()> _
Public Property Name() As String
    Get
        Return _Name
    End Get
    Set(ByVal value As String)
        _Name = value
    End Set
End Property
Private _Name As String

End Class

The error is:

Type ‘Required’ is not defined.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T10:46:21+00:00Added an answer on May 27, 2026 at 10:46 am

    Make sure you are referencing System.ComponentModel.DataAnnotations.dll. The RequiredAttribute also needs .NET 3.5 or above.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using lesscss, the 'framework/compiler' for css. My IDE, dreamweaver, does not recognize .less
Does anyone know of an IDE for F# development that does not involve me
My dream IDE does full code hints, explains and completes PHP, Javascript, HTML and
Does your editor/ide highlight that a++; in this C/C++ code as part of a
I don't see why the following antlr grammar does not generate the tree for
What does the following problem in NetBeans 6.1 IDE stands for while working in
I created a new feature file, test.feature, but RubyMine does not recognize it as
Does anyone know about any API's, IDE's or such that simplifies the development of
Does anyone know of a (free?) web-based IDE for .NET development online?
How does one start development in Silverlight? Does one need a new IDE? or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.