Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IsValid Method
Collapse the table of content
Expand the table of content

UrlAttribute.IsValid Method

.NET Framework 4.6 and 4.5

Validates the format of the specified URL.

Namespace:  System.ComponentModel.DataAnnotations
Assemblies:   System.ComponentModel.Annotations (in System.ComponentModel.Annotations.dll)
  System.ComponentModel.DataAnnotations (in System.ComponentModel.DataAnnotations.dll)

public override bool IsValid(
	Object value
)

Parameters

value
Type: System.Object

The URL to validate.

Return Value

Type: System.Boolean
true if the URL format is valid or null; otherwise, false.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft