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 整数でない場合、このメソッドは をスローします。

適用対象