_Type.IsAssignableFrom(Type) Methode

Definition

Stellt COM-Objekte mit versionsunabhängigen Zugriff auf die IsAssignableFrom(Type) Methode bereit.

public:
 bool IsAssignableFrom(Type ^ c);
public bool IsAssignableFrom(Type c);
abstract member IsAssignableFrom : Type -> bool
Public Function IsAssignableFrom (c As Type) As Boolean

Parameter

c
Type

Der Type zu vergleichende Wert mit dem aktuellen Type.

Gibt zurück

true if c and the current Type represent the same type, or if the current Type is in the inheritance hierarchy of c, or if the current Type is an interface that c implements, or if c is a generic type parameter and the current Type represents one of the constraints of c. false wenn keine dieser Bedingungen der Fall ist oder wenn c dies der Fall ist null.

Hinweise

Diese Methode dient dem Zugriff auf verwaltete Klassen aus nicht verwaltetem Code und sollte nicht aus verwaltetem Code aufgerufen werden.

Gilt für: