NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ComVisibleAttribute Class

This attribute can be applied to an individual type or to an entire assembly to control COM visibility. To make types visible to COM set the attribute to true. To hide types from COM, set the attribute to false. By default, all managed types that are public are visible (the attribute is not needed to make them visible). Setting the attribute to false on the assembly hides all public types within the assembly. Setting the attribute to false on a specific type hides that specific type. Settings applied to an individual type override any assembly settings. Therefore, setting the attribute to false on the assembly and true on an individual type will cause only that type to be visible from the assembly. Only types that are public can be made visible. The attribute cannot be used to make a private or protected type visible to COM.

Object
   Attribute
      ComVisibleAttribute

[Visual Basic]
Public Class ComVisibleAttribute
   Inherits Attribute
[C#]
public class ComVisibleAttribute : Attribute
[C++]
public __gc class ComVisibleAttribute : public Attribute
[JScript]
public class ComVisibleAttribute extends Attribute

Remarks

Can be used to attribute assemblies, classes or interfaces.

Requirements

Namespace: System.Runtime.InteropServices

Assembly: mscorlib.dll

See Also

ComVisibleAttribute Members | System.Runtime.InteropServices Namespace