Share via


UrlValidator.DefaultMessagePrefix property

Gets the default name of object to be displayed in error messages.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Protected MustOverride ReadOnly Property DefaultMessagePrefix As String
    Get
'Usage
Dim value As String

value = Me.DefaultMessagePrefix
protected abstract string DefaultMessagePrefix { get; }

Property value

Type: System.String

Remarks

The message for an illegal character is “{0} cannot contain any of the following characters: " # % & * : < > ? \ { } ~”

The {0} is replaced with the MessagePrefix to provide the user with context for which control or field contains the error.

Example: “URL name cannot contain any of the following characters: " # % & * : < > ? \ { } ~”

See also

Reference

UrlValidator class

UrlValidator members

Microsoft.SharePoint.WebControls namespace