Class ComVisibleAttribute
Controls accessibility of an individual managed type or member, or of all types within an assembly, to COM.
Inherited Members
Namespace: System.Runtime.InteropServices
Assembly: mscorlib.dll
Syntax
[AttributeUsage(AttributeTargets.Assembly|AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Enum|AttributeTargets.Method|AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Interface|AttributeTargets.Delegate, Inherited = false)]
public sealed class ComVisibleAttribute : Attribute
Constructors
ComVisibleAttribute(bool)
Initializes a new instance of the ComVisibleAttribute class.
Declaration
public ComVisibleAttribute(bool visibility)
Parameters
Type | Name | Description |
---|---|---|
bool | visibility | true to indicate that the type is visible to COM; otherwise, false. The default is true. |
Properties
Value
Gets a value that indicates whether the COM type is visible.
Declaration
public bool Value { get; }
Property Value
Type | Description |
---|---|
bool | true if the type is visible; otherwise, false. The default value is true. |