Share via


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 속성 값이 정수가 아닌 경우 을 throw합니다.

적용 대상