JSObject.GetPropertyAsInt32(String) メソッド

定義

プロパティが存在する場合は Int32 プロパティの値を返し、それ以外の場合は 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

パラメーター

propertyName
String

プロパティの名前。

返品

指定した名前のプロパティの値。

例外

プロパティ値は整数ではありません。

注釈

このメソッドは、プロパティ値が整数でない場合に JSException をスローします。

適用対象

こちらもご覧ください