The Required attribute indicates that a property must have a value ; in this sample, a movie has to have values for the Title , ReleaseDate , Genre , and Price properties in order to be valid. The Range attribute constrains a value to within a specified range.