vb System.ComponentModel.RecommendedAsConfigurableAttribute.RecommendedAsConfigurable类(方法)实例源码

下面列出了vb System.ComponentModel.RecommendedAsConfigurableAttribute.RecommendedAsConfigurable 类(方法)源码代码实例,从而了解它的用法。

作者:VB.NET开发    项目:System.ComponentMode   
' Gets the attributes for the property.
Dim attributes As AttributeCollection = _
   TypeDescriptor.GetProperties(Me)("MyProperty").Attributes
       
' Checks to see if the property is recommended as configurable.
Dim myAttribute As RecommendedAsConfigurableAttribute = _
   CType(attributes(GetType(RecommendedAsConfigurableAttribute)), _
   RecommendedAsConfigurableAttribute)
   
If myAttribute.RecommendedAsConfigurable Then
    ' Insert code here.
End If


问题


面经


文章

微信
公众号

扫码关注公众号