Instanceof.JScriptInstanceof(Object, Object) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Détermine si le premier objet spécifié peut être coéré au type du deuxième objet spécifié.
Cette API prend en charge l'infrastructure du produit et n'est pas destinée à être utilisée directement à partir de votre code.
public:
static bool JScriptInstanceof(System::Object ^ v1, System::Object ^ v2);
public static bool JScriptInstanceof(object v1, object v2);
static member JScriptInstanceof : obj * obj -> bool
Public Shared Function JScriptInstanceof (v1 As Object, v2 As Object) As Boolean
Paramètres
- v1
- Object
Objet à forcer au type d’objet v2.
- v2
- Object
Objet qui a le type souhaité.
Retours
true si v1 elle peut être coerctée au type d’objet v2 ; sinon, false.