mscorlib(4.0.0.0) API with additions
ComVisibleAttribute.cs
2 {
4  [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Interface | AttributeTargets.Delegate, Inherited = false)]
5  [ComVisible(true)]
6  [__DynamicallyInvokable]
7  public sealed class ComVisibleAttribute : Attribute
8  {
9  internal bool _val;
10 
14  [__DynamicallyInvokable]
15  public bool Value
16  {
17  [__DynamicallyInvokable]
18  get
19  {
20  return _val;
21  }
22  }
23 
27  [__DynamicallyInvokable]
28  public ComVisibleAttribute(bool visibility)
29  {
30  _val = visibility;
31  }
32  }
33 }
Represents the base class for custom attributes.
Definition: Attribute.cs:15
ComVisibleAttribute(bool visibility)
Initializes a new instance of the ComVisibleAttribute class.
bool Value
Gets a value that indicates whether the COM type is visible.
AttributeTargets
Specifies the application elements on which it is valid to apply an attribute.
Controls accessibility of an individual managed type or member, or of all types within an assembly,...