Share via


ComVisibleAttribute-Konstruktor: (Boolean)

 

Veröffentlicht: Oktober 2016

Initialisiert eine neue Instanz der ComVisibleAttribute-Klasse.

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

Syntax

public ComVisibleAttribute(
    bool visibility
)
public:
ComVisibleAttribute(
    bool visibility
)
new : 
        visibility:bool -> ComVisibleAttribute
Public Sub New (
    visibility As Boolean
)

Parameter

  • visibility
    Type: System.Boolean

    true um anzugeben, dass der Typ für COM sichtbar ist. andernfalls false. Die Standardeinstellung ist true.

Hinweise

Um Typen für COM sichtbar zu machen, legen Sie das Attribut auf true. Um Typen für COM auszublenden, legen Sie das Attribut auf false.

Versionsinformationen

Universelle Windows-Plattform
Verfügbar seit 8
.NET Framework
Verfügbar seit 1.1
Portierbare Klassenbibliothek
Unterstützt in: portierbare .NET-Plattformen
Silverlight
Verfügbar seit 2.0
Windows Phone Silverlight
Verfügbar seit 7.0
Windows Phone
Verfügbar seit 8.1

Siehe auch

ComVisibleAttribute-Klasse
System.Runtime.InteropServices-Namespace

Zurück zum Anfang