TypeProvider.IsAssignable(Type, Type) Methode

Definition

Gibt an, ob ein Typ einem anderen Typ sicher zugewiesen werden kann.

public:
 static bool IsAssignable(Type ^ toType, Type ^ fromType);
public static bool IsAssignable(Type toType, Type fromType);
static member IsAssignable : Type * Type -> bool
Public Shared Function IsAssignable (toType As Type, fromType As Type) As Boolean

Parameter

toType
Type

Das Ziel Type der Zuordnung.

fromType
Type

Die Quelle Type der Zuordnung.

Gibt zurück

true wenn die Aufgabe sicher gemacht werden kann; andernfalls false.

Gilt für: