You need to ensure that new customers enter a valid email address. Which code should you use? (Each correct answer presents part of the solution. Choose all that apply.)
The attribute [ComplexType] is only valid on class declarations, not on variable declarations. I suspect emailPattern in A is a typo. I think A and D are correct.
yes, you are right, its only D. Surely its not 'A' because 'emailPattern' string does not exist within the context, then I tried to declare option B in VS but I couldnt because it throws the next message: "Cannot implicitly convert type 'System.ComponentModel.DataAnnotations.DataType' to 'System.Type". You all can try this by creating an asp net core project in VS and trying to compile the next piece of code:
public class mapache
{
[RegularExpression("", ErrorMessageResourceType = DataType.EmailAddress)]
public string cola { get; set; }
}
Correct Answer is only B. D is invalid since the Model decorator is [DataType] is missing.
upvoted 4 times
...
This section is not available anymore. Please use the main Exam Page.70-486 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Aerologic
Highly Voted 5 years, 6 months agozimzimzimma
Highly Voted 5 years agoluixaca
Most Recent 4 years, 5 months agoDev666
5 years, 1 month agoDev666
5 years, 1 month agoDev666
5 years, 1 month agoozner16
4 years, 8 months agoAT_TW
5 years, 4 months agoDhaval
5 years, 4 months ago