Marshal.IsTypeVisibleFromCom(Type) Metod

Definition

Anger om en typ är synlig för COM-klienter.

public:
 static bool IsTypeVisibleFromCom(Type ^ t);
public static bool IsTypeVisibleFromCom(Type t);
static member IsTypeVisibleFromCom : Type -> bool
Public Shared Function IsTypeVisibleFromCom (t As Type) As Boolean

Parametrar

t
Type

Typ för att söka efter COM-synlighet.

Returer

trueom typen är synlig för COM; annars . false

Kommentarer

IsTypeVisibleFromCom gör att du kan söka efter COM-synlighet i ett steg. Det går inte att använda typer som inte är synliga från COM. En typ visas om den är public och inte är dold med System.Runtime.InteropServices.ComVisibleAttribute.

Gäller för

Se även