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

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

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