Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

ComDefaultInterfaceAttribute Constructor

Initializes a new instance of the ComDefaultInterfaceAttribute class with the specified System.Type object as the default interface exposed to COM.

Namespace:  System.Runtime.InteropServices
Assemblies:   System.Runtime.InteropServices (in System.Runtime.InteropServices.dll)
  mscorlib (in mscorlib.dll)

public ComDefaultInterfaceAttribute(
	Type defaultInterface
)

Parameters

defaultInterface
Type: System.Type

A System.Type value indicating the default interface to expose to COM.

The defaultInterface type passed to the constructor must be visible to COM.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Portable Class Library

Supported in: Portable Class Library
Show:
© 2015 Microsoft