vb System.Web.ApplicationServices.ValidatingPropertiesEventArgs.FailedProperties类(方法)实例源码

下面列出了vb System.Web.ApplicationServices.ValidatingPropertiesEventArgs.FailedProperties 类(方法)源码代码实例,从而了解它的用法。

作者:VB.NET开发    项目:System.Web.ApplicationService   
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
    AddHandler System.Web.ApplicationServices.ProfileService.ValidatingProperties, _
      AddressOf ProfileService_ValidatingProperties
End Sub

Sub ProfileService_ValidatingProperties(ByVal sender As Object, ByVal e As System.Web.ApplicationServices.ValidatingPropertiesEventArgs)
    If (String.IsNullOrEmpty(CType(e.Properties("FirstName"), String))) Then
        e.FailedProperties.Add("FirstName")
    End If
End Sub


问题


面经


文章

微信
公众号

扫码关注公众号