MessageQueueException.GetObjectData(SerializationInfo, StreamingContext) 方法

定義

以序列化 MessageQueueException 所需的資料,填入序列化資訊物件。Populates a serialization information object with the data needed to serialize the MessageQueueException.

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
Public Overrides Sub GetObjectData (info As SerializationInfo, context As StreamingContext)

參數

info
SerializationInfo

SerializationInfo,保留與 MessageQueueException 關聯的序列化資料。A SerializationInfo that holds the serialized data associated with the MessageQueueException.

context
StreamingContext

StreamingContext,含有與 MessageQueueException 關聯的序列資料流的來源和目的端。A StreamingContext that contains the source and destination of the serialized stream associated with the MessageQueueException.

屬性

例外狀況

info 參數為 nullThe info parameter is null.

適用於

另請參閱