Table of Contents

Class ComVisibleAttribute

Namespace
System.Runtime.InteropServices
Assembly
mscorlib.dll

Controls accessibility of an individual managed type or member, or of all types within an assembly, to COM.

[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
Inheritance
ComVisibleAttribute
Inherited Members
Extension Methods

Constructors

ComVisibleAttribute(bool)

Initializes a new instance of the ComVisibleAttribute class.

public ComVisibleAttribute(bool visibility)

Parameters

visibility bool

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.

public bool Value { get; }

Property Value

bool

true if the type is visible; otherwise, false. The default value is true.