This documentation is archived and is not being maintained.

ComVisibleAttribute Constructor

Initializes a new instance of the ComVisibleAttribute class.

[Visual Basic]
Public Sub New( _
   ByVal visibility As Boolean _
)
[C#]
public ComVisibleAttribute(
   bool visibility
);
[C++]
public: ComVisibleAttribute(
   bool visibility
);
[JScript]
public function ComVisibleAttribute(
   visibility : Boolean
);

Parameters

visibility
true to indicate that the type is visible to COM; otherwise, false. The default is true.

Remarks

To make types visible to COM, set the attribute to true. To hide types from COM, set the attribute to false.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

ComVisibleAttribute Class | ComVisibleAttribute Members | System.Runtime.InteropServices Namespace

Show: