本文整理汇总了VB.NET中System.Web.UI.VerificationAttribute类的典型用法代码示例。如果您正苦于以下问题:VB.NET VerificationAttribute类的具体用法?VB.NET VerificationAttribute怎么用?VB.NET VerificationAttribute使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了VerificationAttribute类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的VB.NET代码示例。
示例1: ImageText
<Verification("ADA", "1194.22(a)", VerificationReportLevel.Error, 1, "The image is missing a text equivalent.", VerificationRule.NotEmptyString, "ImageUrl")> _
<Verification("WCAG", "1.1", VerificationReportLevel.Error, 1, "The image is missing a text equivalent.", VerificationRule.NotEmptyString, "ImageUrl")> _
Public Property ImageText() As String
Get
If ViewState("ImageText") Is Nothing Then
Return String.Empty
Else
Return CType(ViewState("ImageText"), String)
End If
End Get
Set(ByVal value As String)
ViewState("ImageText") = value
End Set
End Property
Public Property ImageUrl() As String
Get
If ViewState("ImageUrl") Is Nothing Then
Return String.Empty
Else
Return CType(ViewState("ImageUrl"), String)
End If
End Get
Set(ByVal value As String)
ViewState("ImageUrl") = value
End Set
End Property