Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Defines a validation test that tests whether a value is a well-formed URL.
Namespace: System.Web.WebPages
Assembly: System.Web.WebPages (in System.Web.WebPages.dll)
Syntax
'Declaration
Public Shared Function Url ( _
errorMessage As String _
) As IValidator
'Usage
Dim errorMessage As String
Dim returnValue As IValidator
returnValue = Validator.Url(errorMessage)
public static IValidator Url(
string errorMessage
)
public:
static IValidator^ Url(
String^ errorMessage
)
static member Url :
errorMessage:string -> IValidator
public static function Url(
errorMessage : String
) : IValidator
Parameters
- errorMessage
Type: System.String
The error message to display if validation fails.
Return Value
Type: System.Web.WebPages.IValidator
The validation test.
Remarks
The test does not determine whether the URL is valid, only that it is well formed.