December 2002
Intermediate to advanced
720 pages
17h 39m
English
You can specify which members of your classes will be visible to unmanaged (COM) clients using the ComVisible attribute, which resides in the System.Runtime.InteropServices namespace. To specify that a property or method should be visible to COM, set ComVisible to true as follows:
[ComVisible(true)]
public void DoSomething()
{
// Do something...
}
To specify that a property or method should not be visible to COM, set ComVisible to false as follows:
[ComVisible(false)]
public void DoSomething()
{
// Do something...
}
The ComVisible attribute can be applied to a class, structure, enumeration or an entire assembly. It can also be applied to any of the members of a type such as a method, property, field, interface or delegate. You ...