JSObject.GetPropertyAsString(String) Méthode

Définition

Retourne la valeur de la propriété comme String si la propriété existait ; sinon null.

public:
 System::String ^ GetPropertyAsString(System::String ^ propertyName);
public string? GetPropertyAsString (string propertyName);
member this.GetPropertyAsString : string -> string
Public Function GetPropertyAsString (propertyName As String) As String

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 une chaîne.

Remarques

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

S’applique à