XamlParseException.GetObjectData(SerializationInfo, StreamingContext) 메서드

정의

지정된 SerializationInfo 개체를 채워 지정된 개체를 serialize하는 데 필요한 데이터를 가져옵니다.Gets the data that is required to serialize the specified object by populating the specified SerializationInfo object.

public:
 override void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
public override void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Security.SecurityCritical]
[System.Security.SecurityTreatAsSafe]
public override void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Security.SecurityCritical]
public override void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
[<System.Security.SecurityCritical>]
[<System.Security.SecurityTreatAsSafe>]
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
[<System.Security.SecurityCritical>]
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
Public Overrides Sub GetObjectData (info As SerializationInfo, context As StreamingContext)

매개 변수

info
SerializationInfo

serialization 데이터를 추가할 serialization 정보 개체입니다.The serialization information object to add the serialization data to.

context
StreamingContext

이 serialization의 대상입니다.The destination for this serialization.

특성

설명

GetObjectDataSerializationInfoserialization 대상인 모든 예외 개체 데이터를 사용 하 여 개체를 설정 합니다.GetObjectData sets a SerializationInfo object with all the exception object data targeted for serialization. 역직렬화하는 동안 스트림을 통해 전송된 SerializationInfo에서 예외가 다시 구성됩니다.During deserialization, the exception is reconstituted from the SerializationInfo transmitted over the stream.

적용 대상