JSObject.GetPropertyAsInt32(String) 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.
Retourne la valeur de la propriété comme Int32 si la propriété existe, sinon 0.
public:
int GetPropertyAsInt32(System::String ^ propertyName);
public int GetPropertyAsInt32(string propertyName);
member this.GetPropertyAsInt32 : string -> int
Public Function GetPropertyAsInt32 (propertyName As String) As Integer
Paramètres
- propertyName
- String
Nom de la propriété.
Retours
Valeur de la propriété portant le nom spécifié.
Exceptions
La valeur de propriété n’est pas un entier.
Remarques
Cette méthode lève une JSException valeur lorsque la valeur de propriété n’est pas un entier.