JSObject.GetPropertyAsInt32(String) Méthode

Définition

Retourne la valeur de la propriété comme Int32 si la propriété existait, 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é avec le nom spécifié.

Exceptions

La valeur de la propriété n’est pas un entier.

Remarques

Cette méthode lève un JSException lorsque la valeur de la propriété n’est pas un entier.

S’applique à