ComDefaultInterfaceAttribute Constructor (Type)

 

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
Assembly:  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.

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: