Marshal.IsTypeVisibleFromCom-Methode: (Type)
Veröffentlicht: Oktober 2016
Gibt an, ob ein Typ für COM-Clients sichtbar ist.
Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Syntax
public static bool IsTypeVisibleFromCom(
Type t
)
public:
static bool IsTypeVisibleFromCom(
Type^ t
)
static member IsTypeVisibleFromCom :
t:Type -> bool
Public Shared Function IsTypeVisibleFromCom (
t As Type
) As Boolean
Parameter
t
Type: System.TypeDer Typ, der auf Sichtbarkeit für COM zu überprüfen ist.
Rückgabewert
Type: System.Boolean
true, wenn der Typ für COM sichtbar ist, andernfalls false.
Hinweise
IsTypeVisibleFromCom können Sie prüfen, ob die COM-Sichtbarkeit in einem Schritt. Typen, die nicht sichtbar sind, können nicht von COM verwendet werden Ein Typ ist sichtbar, wenn er ist public und nicht ausgeblendeten mit der System.Runtime.InteropServices.ComVisibleAttribute.
Versionsinformationen
.NET Framework
Verfügbar seit 1.1
Siehe auch
ComVisibleAttribute
Marshal-Klasse
System.Runtime.InteropServices-Namespace
Zurück zum Anfang