Editare

Partajați prin


ComDefaultInterfaceAttribute(Type) Constructor

Definition

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

public:
 ComDefaultInterfaceAttribute(Type ^ defaultInterface);
public ComDefaultInterfaceAttribute (Type defaultInterface);
new System.Runtime.InteropServices.ComDefaultInterfaceAttribute : Type -> System.Runtime.InteropServices.ComDefaultInterfaceAttribute
Public Sub New (defaultInterface As Type)

Parameters

defaultInterface
Type

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

Remarks

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

Applies to