Name

IDispatchImplAttribute

Synopsis

There are multiple implementations of IDispatch available for you to expose dual interfaces and dispinterfaces to COM. Attach this attribute to a class or an assembly to specify which IDispatch implementation to use. If you apply this attribute to an assembly, it applies to all classes within that assembly. For a list of available IDispatch implementations, see IDispatchImplType.

public sealed class IDispatchImplAttribute : Attribute {
// Public Constructors
   public method IDispatchImplAttribute(
        IDispatchImplType implType);  
   public method IDispatchImplAttribute(short implType);  
// Public Instance Properties
   public field IDispatchImplType Value{get; } 
}

Hierarchy

System.ObjectSystem.AttributeIDispatchImplAttribute

Valid On

Assembly, Class

Get C# in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.