vb System.Web.UI.Design.WebControls.AccessDataSourceDesigner.PreFilterProperties类(方法)实例源码

下面列出了vb System.Web.UI.Design.WebControls.AccessDataSourceDesigner.PreFilterProperties 类(方法)源码代码实例,从而了解它的用法。

作者:VB.NET开发    项目:System.Web.UI.Design.WebControl   
' Shadow control properties with design time properties.
Protected Overrides Sub PreFilterProperties(ByVal properties As IDictionary)

    ' Call the base class method first.
    MyBase.PreFilterProperties(properties)

    ' Add the ConnectionString property to the property grid.
    Dim prop As PropertyDescriptor
    prop = CType(properties("ConnectionString"), PropertyDescriptor)

   Dim atts(1) As Attribute
    atts(0) = New BrowsableAttribute(True)
    atts(1) = New ReadOnlyAttribute(True)

    properties("ConnectionString") = TypeDescriptor.CreateProperty( _
        prop.GetType(), prop, atts)
End Sub


问题


面经


文章

微信
公众号

扫码关注公众号