O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

ComSourceInterfacesAttribute

Synopsis

This attribute indicates the unmanaged event (using the COM IConnectionPoint architecture) interfaces that are available on the decorated type. For each method defined in the COM interface, the type must provide a corresponding “event” instance that the COM architecture will plug into.

This attribute is only necessary when building .NET objects for plugging into COM event-aware systems, such as ActiveX control containers.

public sealed class ComSourceInterfacesAttribute : Attribute {
// Public Constructors
   public method ComSourceInterfacesAttribute(
        string sourceInterfaces);  
   public method ComSourceInterfacesAttribute(
        Type sourceInterface);  
   public method ComSourceInterfacesAttribute(
        Type sourceInterface1, Type sourceInterface2);  
   public method ComSourceInterfacesAttribute(
        Type sourceInterface1, Type sourceInterface2, 
        Type sourceInterface3);  
   public method ComSourceInterfacesAttribute(
        Type sourceInterface1, Type sourceInterface2, 
        Type sourceInterface3, Type sourceInterface4);  
// Public Instance Properties
   public field string Value{get; } 
}

Hierarchy

System.ObjectSystem.AttributeComSourceInterfacesAttribute

Valid On

Class

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required