ArgumentOutOfRangeException.GetObjectData(SerializationInfo, StreamingContext) ArgumentOutOfRangeException.GetObjectData(SerializationInfo, StreamingContext) ArgumentOutOfRangeException.GetObjectData(SerializationInfo, StreamingContext) ArgumentOutOfRangeException.GetObjectData(SerializationInfo, StreamingContext) Method

定義

以無效的引數值和其他例外狀況資訊設定 SerializationInfo 物件。Sets the SerializationInfo object with the invalid argument value and additional exception information.

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 SerializationInfo SerializationInfo

存放序列物件資料的物件。The object that holds the serialized object data.

context
StreamingContext StreamingContext StreamingContext StreamingContext

物件,描述序列化資料的來源或目的地。An object that describes the source or destination of the serialized data.

實作

例外狀況

備註

GetObjectData 設定SerializationInfo以序列化為目標的所有例外狀況物件資料的物件。GetObjectData sets a SerializationInfo object with all the exception object data targeted for serialization. 還原序列化期間,系統例外狀況物件SerializationInfo資料流上傳輸。During deserialization, the exception object is reconstituted from the SerializationInfo transmitted over the stream.

如需詳細資訊,請參閱SerializationInfoFor more information, see SerializationInfo.

安全性

SecurityPermission
提供序列化服務。for providing serialization services. 相關聯的列舉型別: SerializationFormatter 安全性動作: LinkDemandAssociated enumeration: SerializationFormatter Security action: LinkDemand

SecurityCriticalAttribute
需要完全信任立即呼叫端。requires full trust for the immediate caller. 此成員不能由部分信任或不透明的程式碼。This member cannot be used by partially trusted or transparent code.

適用於

另請參閱