ValidationPropertyAttribute.Name Property

 

Gets the name of the ASP.NET server control's validation property.

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)

Public ReadOnly Property Name As String

Property Value

Type: System.String

The name of the validation property.

The following code example demonstrates using the ValidationPropertyAttribute class when creating a custom control.

<ValidationPropertyAttribute("Message")> Public Class MessageControl
   Inherits Label
   Private _message As Integer = 0

   Public Property Message() As Integer
      Get
         Return _message
      End Get
      Set(ByVal Value As Integer)
         _message = Value
      End Set
   End Property
End Class 

.NET Framework
Available since 1.1
Return to top
Show: