Compartilhar via


Construtor ComDefaultInterfaceAttribute (Type)

 

Dica

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Inicializa uma nova instância da classe ComDefaultInterfaceAttribute com o objeto System.Type especificado como a interface padrão exposta ao COM.

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (em mscorlib.dll)

Sintaxe

public ComDefaultInterfaceAttribute(
    Type defaultInterface
)
public:
ComDefaultInterfaceAttribute(
    Type^ defaultInterface
)
new : 
        defaultInterface:Type -> ComDefaultInterfaceAttribute
Public Sub New (
    defaultInterface As Type
)

Parâmetros

  • defaultInterface
    Type: System.Type

    Um valor System.Type que indica a interface padrão a ser exposta ao COM.

Comentários

O defaultInterface transmitido ao construtor de tipo deve ser visível para COM.

Informações de Versão

Plataforma Universal do Windows
Disponível desde 8
.NET Framework
Disponível desde 2.0
Biblioteca de Classes Portátil
Com suporte no: plataformas portáteis do .NET
Silverlight
Disponível desde 2.0
Windows Phone Silverlight
Disponível desde 7.0
Windows Phone
Disponível desde 8.1

Confira Também

Classe ComDefaultInterfaceAttribute
Namespace System.Runtime.InteropServices

Retornar ao início