SerializationInfo.GetInt32(String) 메서드

정의

SerializationInfo 저장소에서 부호 있는 32비트 정수 값을 검색합니다.

public:
 int GetInt32(System::String ^ name);
public int GetInt32 (string name);
member this.GetInt32 : string -> int
Public Function GetInt32 (name As String) As Integer

매개 변수

name
String

검색할 값의 이름입니다.

반환

name과 관련된 부호 있는 32비트 정수입니다.

예외

name이(가) null인 경우

name과 관련된 값을 부호 있는 32비트 정수로 변환할 수 없는 경우

지정된 이름을 가진 요소가 현재 인스턴스에 없는 경우

설명

값이 부식된 32비트 정수이거나 1로 변환될 수 있는 경우 해당 값이 반환됩니다. 그렇지 않으면 가 InvalidCastException throw됩니다. 모든 변환은 이 SerializationInfo와 연결된 에서 IFormatterConverter 수행됩니다.

적용 대상