ComVariant.As<T> 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.
Créez une valeur managée en fonction de la valeur dans l’instance de ComVariant.
public:
generic <typename T>
T As();
public readonly T? As<T>();
member this.As : unit -> 'T
Public Function As(Of T) () As T
Paramètres de type
- T
Type managé pour créer une instance de.
Retours
Valeur gérée contenue dans cette variante.
Exceptions
Quand T ne correspond pas à la VarType du ComVariant.