다음을 통해 공유


RuntimeFieldHandle.GetObjectData(SerializationInfo, StreamingContext) 메서드

정의

주의

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

현재 인스턴스로 표시된 필드를 역직렬화하는 데 필요한 데이터를 사용하여 SerializationInfo를 채웁니다.

public:
 virtual void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
public void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Security.SecurityCritical]
public void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
abstract member GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
abstract member GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
[<System.Security.SecurityCritical>]
abstract member GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
Public Sub GetObjectData (info As SerializationInfo, context As StreamingContext)

매개 변수

info
SerializationInfo

serialization 정보로 채울 SerializationInfo 개체입니다.

context
StreamingContext

(예약됨)serialize된 데이터를 저장 및 검색할 위치입니다.

구현

특성

예외

info이(가) null인 경우

현재 인스턴스의 Value 속성이 유효한 핸들이 아닌 경우

설명

매개 변수는 context 예약되어 있으며 현재 이 작업에 참여하지 않습니다.

자세한 내용은 SerializationInfo.AddValue 메서드를 참조하세요.

적용 대상