Files
ayanova7/source/csla10/CSLA.Test/MaxLengthArgs.vb
2018-06-29 19:47:36 +00:00

23 lines
449 B
VB.net

Imports CSLA.BrokenRules
Public Class MaxLengthArgs
Inherits RuleArgs
Private mMax As Integer
Public ReadOnly Property MaxLength() As Integer
Get
Return mMax
End Get
End Property
Public Sub New(ByVal maxLength As Integer)
mMax = maxLength
End Sub
Public Sub New(ByVal propertyName As String, ByVal maxLength As Integer)
MyBase.New(propertyName)
mMax = maxLength
End Sub
End Class